Game Development Community

RPC functions and packupdate/unpackupdate.

by Jason Chi · in Torque Game Engine · 06/05/2005 (6:59 am) · 2 replies

Hi, all,

My scenario:
1. Adpative mode.
2. packupdate/unpackupdate works fine when no RPC functions are implemented.
3. packupdate/unpackupdate won't work (after setMaskBits) after I implement a RPC functions.
BUT if I execute a client-to-server RPC function manually after setMaskBits, the program will enter packupdate/unpackupdate. Therefore I try to do an extra RPC function call right after setMaskBits, unfortunately it still DOESN't work unless I put a dealy like Platform::sleep(100) between setmaskBits and that RPC function. But it crashes if the delay time is too long (like 100 ms). Then I try to shorten the delay time to prevent crashing, but the problem occurs again - the program doesn't enter packupdate!!

Every thing seems to be fine if I turn off the Adaptive mode off. But the thing is we need high through-put for our application. Non-adaptive mode is just too slow for us.

Could anyone help me to solve this problem? Thanks,


Jason

#1
06/05/2005 (11:57 am)
What kind of throughput do you need for your application (kbytes/sec)?
#2
06/05/2005 (7:16 pm)
120 kBytes/s
With adaptive mode, we are able to get 140kBytes/s averagely.