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

Removal of delta floats in msg writing/reading #342

Open
Caball009 opened this issue Jan 4, 2022 · 1 comment
Open

Removal of delta floats in msg writing/reading #342

Caball009 opened this issue Jan 4, 2022 · 1 comment

Comments

@Caball009
Copy link
Contributor

Caball009 commented Jan 4, 2022

I would like to know whether there are any plans to bring back support for delta float updates. At the moment, whenever an origin float value changes, the entire new value is send instead of new value - old value, which would usually fit in 16 bits (the same way view angles are send for the player state, and then converted with short-to-angle or angle-to-short). What I'm referring to is this: https://github.com/callofduty4x/CoD4x_Server/blob/master/src/msg.c#L1919-L1927

The extra amount of data (compared to vanilla CoD4) is rather large. I measured about 1 - 1.5 MB per 10 minute map per player. On a populated server that easily extrapolates (1.5MB * 6 * 24 * 20 players) to 4+ GB of extra data per day compared to the old method of using delta updates for float values.

@Caball009
Copy link
Contributor Author

Polite bump ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants