Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add /positionpacketdelay to reduce latency jitter on good connections #427

Open
Calinou opened this issue Dec 30, 2021 · 2 comments
Open
Labels
Feature request Request to add a new feature.

Comments

@Calinou
Copy link

Calinou commented Dec 30, 2021

AssaultCube currently uses a 25 Hz network update rate. Given the game's focus on low-end hardware, this is probably fine1, but we can improve the situation by making clients (optionally) send input/position data more often.

Sending client data more often to the server would result in less jittering. Therefore, players will appear appear to move in a more stable fashion. This could be exposed as a /positionpacketdelay variable which would default to 40 (= 25 Hz), but could be decreased as low as 8 (= 125 Hz) for those with good ADSL, cable or fiber connections. In the long run, the default setting could also be decreased to a value such as 20 (= 50 Hz) after doing some playtesting on less-than-ideal connections such as 4G.

See this page for a detailed explanation, as well as redeclipse/base#982.

Footnotes

  1. It may be worthwhile to consider increasing the server update rate to 30 Hz, which happens to be exactly half of 60 Hz – the monitor refresh rate used by most casual players.

@ynotinteractive
Copy link

Excellent idea. Would this give players with better systems a competitive advantage though?

@Calinou
Copy link
Author

Calinou commented Jan 1, 2022

Excellent idea. Would this give players with better systems a competitive advantage though?

I think decreasing this variable is a mixed bag in terms of competitive advantage. While your shots will be fired a bit earlier, your position will also be updated earlier and more reliably, which makes it easier for enemies to track you with their crosshair when moving.

@drian0 drian0 added the Feature request Request to add a new feature. label Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Request to add a new feature.
Projects
None yet
Development

No branches or pull requests

3 participants