Game Development Community

Maximum lag -> 8ms in a LAN?

by Luis Anton · in Technical Issues · 10/12/2003 (3:26 pm) · 6 replies

Hi! I need to achieve a maximum lag of 8ms (yes, eight milliseconds) playing on a LAN. However, there would be just a server and one client involved in the operation, and the information that the server must send to the client is minimum: just the position of the camera (or the player). Is it possible using Torque?

#1
10/12/2003 (3:39 pm)
That sounds feasible, on a fast lan segment, if you optimized the network traffic.
#2
10/12/2003 (7:08 pm)
Sounds optimistic to me, but it problably depends on your hardware. I get latency of up to 10ms just with ping on my LAN.
#3
10/13/2003 (3:55 am)
Um... There would be nothing else running on that lan, just Torque, and I could adjust the networking code to send just what I want...
I need to show in the client exactly the same image that is being shown in the server, but from a slightly different point of view. That would create a stereographic image of the world, but only if the difference between the rendering of both images is below 8ms. I know it's been done before, but not with Torque...

PS: Mark, I get an average ping of 8ms on a 11/22Mbps wireless LAN
#4
10/13/2003 (4:56 am)
Could u use 2 clients and display the images on the client machines - therefore each image is gonna get roughly the same delay from the network.

Or, could u just use 2 viewports on the same client (there is some code to do this in resources i think) - if u need 2 monitors u could probably even do that if u have a multiple monitor setup...

I would have thought 2 viewports on the same machine is going to be the best to ensure that things are 100% in sync - anytime u put an external connection in there it becomes more difficult to guarantee synchronicity, more from hardware issues than anything else...

These suggestions might not be appropriate for ur situation so feel free to ignore em ;)
#5
10/13/2003 (4:58 am)
I can remember that when I tested my stuff a while ago, that the lag was between 1 and 15 ms. The Avarage was 11. So, I think you would have to change some code (network code) of torque. Maybe it's possible if you do nothing but walking around (moving the camera). I had some other stuff running (AI and some Effects and stuff).

Oh and it was on a 100 Mbps Lan.
#6
10/13/2003 (9:19 am)
Adam, those 2 viewports sound nice, I'll take that into account. We are using 2 projectors to cast the image on a special screen (polariced light and all that stuff), so the 2 monitor output could be a great solution! :)

Marco, 11ms as an Average sounds great. It's just walking what I have to implement, and a very simple AI. No special effects. I think I will manage to get those 8ms on a LAN if I cannot use Adam's solution :)