Data Transfer Rate and Pausing
by Devrim Erdem · in Torque Game Engine · 05/29/2004 (1:10 pm) · 7 replies
Hello,
I have just started using TNL and looked into RPC. RPC looks fine for events, but I have made a simple test where I have a client which sends the current time to server.
The data transfer doesn't seem to be fluent. That is I get 100-200 RPC calls at ~ 1 call/second then a pause of several seconds then another block of data arrives.
I am not well knowledged about OpenTNL or networking, so I guess there is an obvious reason for this. Can you give me some hints ?
Dev.
I have just started using TNL and looked into RPC. RPC looks fine for events, but I have made a simple test where I have a client which sends the current time to server.
The data transfer doesn't seem to be fluent. That is I get 100-200 RPC calls at ~ 1 call/second then a pause of several seconds then another block of data arrives.
I am not well knowledged about OpenTNL or networking, so I guess there is an obvious reason for this. Can you give me some hints ?
Dev.
#2
05/30/2004 (4:15 am)
Both client and server is running on the samehost. I use the 127.0.0.1:28000 as the TNL::Address.
#3
05/30/2004 (7:52 am)
Any high priority proceses running? Are you sure the client is sending at a rate of 1/sec?
#4
05/30/2004 (10:14 am)
No hi-prio processes. But the client is not sending at fixed frequency, but rather as fast as it can ( there is no sleep call in the while loop).
#5
05/30/2004 (4:03 pm)
If there's no sleep then it could be a function of the OS not doing a good job of preemptively time slicing the apps.
#6
BTW, testing Data Transfer Rate on one machine is not a good idea.
05/31/2004 (6:38 am)
The client must sleep for some time each loop, or else the kernel and server have very limited chance to process data.BTW, testing Data Transfer Rate on one machine is not a good idea.
#7
05/31/2004 (7:14 am)
OK. Issue is clear for me. Thanks to all responders.
Associate Kyle Carter