Skip to content

Various fixes from q3e and lilium-arena reported by Tobias Kühnhammer#409

Open
mgerhardy wants to merge 8 commits into
mainfrom
pr/fixes
Open

Various fixes from q3e and lilium-arena reported by Tobias Kühnhammer#409
mgerhardy wants to merge 8 commits into
mainfrom
pr/fixes

Conversation

@mgerhardy

Copy link
Copy Markdown
Member

No description provided.

zturtleman and others added 8 commits June 13, 2026 09:55
In matches with many players the server would run out of indexes for
snapshot entities. This is internal to the server for delta updates.
Adjust values so they don't go negative and delta updates still work.

Based on change in Quake3e by Eugene C. in July 2016;
Fix: no more "Restarting server due to numSnapshotEntities wrapping"
ec-/Quake3e@ef47444

this might also fix issue #370
- fix SVF_NOSERVERINFO may be ignored on map start
- do not send any delta updates for zombies / final packets
- initialized playerState for each non-zombie frame
- send packet entities changes only at >= CS_PRIMED

from q3e b8cb8bc7aba53a7685f05cacee1a8dbf438c2a4f
Shortly, this is a HUGE memory usage reduction so hunk usage dependency from sv_maxclients (first number) now looks like:
 4 - 7134KB -> 7390KB
 6 - 10700KB -> 7757KB
 8 - 14267KB -> 8124KB
 16 - 28.5MB -> 9.5MB
 32 - 57.0MB -> 12.5MB
 64 - 114MB -> 18.3MB
Some CPU usage increase was initially expected but actual reduction now observed :P

ea6410918fcf4c41509c8405553080ce439625a1 from q3e
229a054fcd6cd87300713ca18e161380bbaf097e from q3e
229a054fcd6cd87300713ca18e161380bbaf097e from q3e
229a054fcd6cd87300713ca18e161380bbaf097e from q3e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants