Game Development Community

Weird Speed Issue

by Shai Perry · in Torque Game Engine · 06/30/2006 (8:02 pm) · 2 replies

Hi,

I was incredibly amazed when I read this post by Sebastien Bourgon: http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9131

And consequently, I have a question to some GG veterans:

1. Why isn't prefs.cs set to maximum by default, especially when one runs the engine in single player
mode? I mean, "loading datablocks, loading objects, etc." is acting as slow as if it's running on a 14k
modem when you load it as a single player (!)

So if I change starter.fps/client/prefs.cs

$pref::Net::PacketRateToClient = "10";
$pref::Net::PacketSize = "200";

to

$pref::Net::PacketRateToClient = "32";
$pref::Net::PacketSize = "450";

then my 'loading' menu works 6 times as fast...
(or as mentioned in Bourgon's post, the speed of a T1/LAN.)

which leads me to my next question...

2. in netconnection.cc I see that gPacketRateToClient is max at 32. and gPacketSize is max at 450.
My question is: are there any ramifications of changing these limits to accept insanely large numbers?

because my game is strictly for single player use, so why should i be limited to the speed of a T1/LAN?

Thanks,
Shai