Game Development Community

TGB Object transfer, good but slow. Help?

by Nic Biondi · in Torque Game Builder · 12/02/2008 (8:01 pm) · 2 replies

Hello gang,
I have implemented an object transfer between client/server via torquescript. I know it's not really advised and all.. but I didn't need too much sent.. just around 20,000 variables :D. Here's my problem:

It seems to parse and send the file from the server in about one second.
Then the client slowly chomps on the data for about 3 minutes on that before finishing.

Does anyone know if this is what would be expected? My networking usage is super low. Is it possible that my game loop is slowing this down.. or is it pretty time consuming for the client to process that many packets quickly? I hope I am just receiving it incorrectly somehow?

Thanks in advance!
-nic

#1
12/02/2008 (8:31 pm)
On a related question: how big can a "string" be when you send it via command to client?
#2
12/03/2008 (1:24 pm)
Ok.. I did some tests and it seems that the server while shoot out all the data really quickly.. then the client picks them up as it can process them.. there seems to be a decent overhead on the packets though.. so certianly getting the most of each transfered value is the way to go.

I'm now thinking that if I can pass over the serialized dso files rather then the readable ones.. couldn't I send those WAY faster? Do you think that would work???

-nic