Game Development Community

Determining Network Speed

by Ronald J Nelson · in Technical Issues · 09/16/2008 (1:59 pm) · 6 replies

I have found that I might possibly need to be able to automatically determine a client's network speed. In other words is the client using a 56K modem, DSL, Cable, T1, ect? Is there some method for doing so other than just asking for the client to tell the game?

Thanks in advance.

#1
09/17/2008 (6:21 pm)
You might already be aware of these variables.
$Pref::Net::LagThreshold = "400";
$pref::Net::PacketRateToClient = "10";
$pref::Net::PacketRateToServer = "32";
$pref::Net::PacketSize = "200";
I'm not positive if these are used by both the client and server, but it would make sense for each client to be able to specify its own rate, just not sure if thats really how it works. If so, you could find where that information is stored for each client, probably in NetConnection.
#2
09/18/2008 (8:11 pm)
Thanks James, yes I already new about those. I was more looking at something else that detected the client's hardware. No big deal though, I seem to have figured out an alternate method for what I needed. Thanks anyway.
#3
09/26/2008 (10:31 pm)
You know, I don't mean to sound rude but I'm still deep into learning phase... I just wish people would talk about the solution once a question is posted, even if it comes from the same person

Others could have the same problem in the future and this exact problem seems like a useful resource to have one day

Thank you and, again, I don't mean to be rude or anything, just asking for cooperation between students :)
#4
09/26/2008 (11:42 pm)
Well Giampaolo since it is a code based solution, I am not allowed to post it in a public area.

Now if you were a SDK owner, you would see that I have indeed been discussing my code in the private SDK owner areas.

No you were not being rude, you had a good question, I have given you the answer, unfortunately in your case that still does not help you.
#5
09/26/2008 (11:55 pm)
I own TGEA 1.7.1 (Indie one, of course)

See I'm not yet used to diversification between public and restricted area, but lemme ask you why posting for help in here?
Isn't this place meant for guests or curious who still have to buy the engine?

BTW Thank you, I'm going to check the restricted area for your thread, you know I'm in the phase where I'm sorting things out, gathering resources but most important thing to understand what can and can't be done
#6
09/27/2008 (10:48 am)
Well then my post was regarding code assistance and it is in the TGE Private SDK area. The reasons I posted here is because it is the Networking section and occasionally others have developed means outside of the engine code(their own code and applications) that can do what you need.

So sometimes it doesn't hurt to ask in other places. I own the TGEA and TGE SDKs, but since their networking code is pretty much identical in most ways, I went to the TGE forums because it has been around longer and has more owners thus providing a much higher chance of receiving help.