Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: con:SetImage()

  1. #1
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default con:SetImage()

    This seems to be very slow - about 10 seconds to transfer 24 fairly small (e.g. 19k) images. I can't be more precise on the timing since the transfer is asynchronous. This is all on the same PC by the way. Doesn't seem to make any difference whether the image is a JPG or a PNG.
    --Rob

  2. #2
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    Any thoughts on this?
    --Rob

  3. #3
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    Rob,

    This is a G -> NR transfer?

  4. #4
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    Yup
    --Rob

  5. #5
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,346

    Default

    When I was developing this thing I was testing G->G and that still can transfer 500kB within a second. So maybe the PPC network connection isn't very fast?
    Ron
    No support through PM

  6. #6
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    This is Girder -> NR Win32 on the same PC

    It's possible that it's Ben's drv_girder.dll that's the culprit
    --Rob

  7. #7
    Join Date
    May 2002
    Location
    CT
    Posts
    6,559

    Default

    Is this to one client? Do you blast all 24 in a loop to one client, or do you loop through the list of clients for each image?

    If you can put together a quick test file for me, I'll run it local and see what's happening.

  8. #8
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    It's all to one client, using LDJ.

    I'll try to come up with a test.
    --Rob

  9. #9
    Join Date
    May 2002
    Location
    CT
    Posts
    6,559

    Default

    Thanks for the test, Rob.

    I put some timing into the send function in the lua, and it returns almost immediately for each one, so I'm assuming this is threading, in some way.

    On the NetRemote side, from command received to image set is 30 milliseconds. There is about a half second between each send, however.

    Code:
    12588 : Got command
    12588 : Got command 2
    12598 : Got image set
    12598 : Parsing command
    12598 : Parsed command
    12598 : Writing image data
    12608 : Setting variable
    12618 : Set variable
    
    -----------------------
    13089 : Got command
    13089 : Got command 2
    13099 : Got image set
    13099 : Parsing command
    13099 : Parsed command
    13109 : Writing image data
    13109 : Setting variable
    13119 : Set variable
    So the time between 12618 and 13089 is about a half second wait between calls coming into NetRemote.

    Now I originally thought it was because I wasn't ACK'ing back to Girder on an image receive, and it was waiting a half second for an ACK. But I added that in and no dice.

    Ron, any ideas?

  10. #10
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    Right, so the transfer is quick, but it's not visiting the queue often enough perhaps?
    --Rob

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •