Reducing Latency in BZ - Windows

Help with Setup, Hardware, Performance or other Issues...Or just pimp your rig.
Post Reply
D3ad Turtle
Private
Private
Posts: 2
Joined: Fri Apr 10, 2009 5:53 am

Reducing Latency in BZ - Windows

Post by D3ad Turtle » Sun Jun 21, 2020 6:02 pm

I hope I'm not going over old ground.
Normally I use Linux Mint, and the expert on reducing latency there
is Gorgomol, but here are some links for reducing latency in Windows:

https://www.ghacks.net/2012/09/10/reduc ... n-windows/
https://www.speedguide.net/articles/gaming-tweaks-5812

I recommend to first try disabling Nagles algorithm - then try the other tweaks.

I think the "Leatrix Latency Fix" will apply the registry mods more easily:
https://www.softpedia.com/get/Network-T ... -Fix.shtml

Also setting BZFlag's process priority higher may smooth things out (Right Click on task bar select
task manager, go to list of all process, select BZFLag, and set process to high).

Now anyone else have recommendations on how to tweak bzflag latency on windows?

Thanks!
D3ad Turtle

User avatar
blast
General
General
Posts: 4792
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Reducing Latency in BZ - Windows

Post by blast » Sun Jun 21, 2020 7:19 pm

I've never done anything special except for avoiding WiFi. Also, the links above are talking about TCP. While we do use both TCP and UDP, the more time sensitive items (like tank position) are sent over UDP since resending old position data is useless.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5193
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Re: Reducing Latency in BZ - Windows

Post by JeffM » Sun Jun 21, 2020 10:26 pm

D3ad Turtle wrote:
Sun Jun 21, 2020 6:02 pm
Now anyone else have recommendations on how to tweak bzflag latency on windows?
Don't have low frame rate. Since BZFlag is single threaded, your frame time is added to your packet latency since the client must wait for a frame to draw before it can process the next packet. Update your drivers.
ImageJeffM

User avatar
blast
General
General
Posts: 4792
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Reducing Latency in BZ - Windows

Post by blast » Sun Jun 21, 2020 10:58 pm

The ideal frame rate is around 120 to 160. At around 200 the collision system gets a bit wonky. I either enable vertical sync (which on most of my displays, will lock the FPS to 144) or enable energy saver and the use "/localset fpsLimit 120" in the chat box.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5193
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Re: Reducing Latency in BZ - Windows

Post by JeffM » Sun Jun 21, 2020 11:04 pm

Yes, just don't have low FPS in the teens like some very old onboard chip-sets can give you, or you are adding lag,
ImageJeffM

D3ad Turtle
Private
Private
Posts: 2
Joined: Fri Apr 10, 2009 5:53 am

Re: Reducing Latency in BZ - Windows

Post by D3ad Turtle » Mon Jun 22, 2020 9:02 am

Thanks for upping the FPS suggestion, and thanks for reminding me about using UDP instead of TCP.
D3

Post Reply