Paril / q2pro

Enhanced Quake 2 client and server focused on multiplayer
GNU General Public License v2.0
9 stars 2 forks source link

better compression for gamestate configstrings #120

Open Paril opened 6 days ago

Paril commented 6 days ago

Certain configstrings (CS_STATUSBAR mainly, but CS_GENERAL can technically do this too) can span multiple "rows" - right now, we're sending each row separately, so for a long configstring like CS_STATUSBAR there's several extra shorts between each configstring. We can save some bytes here by instead sending entire spans of configstrings rather than doing it by row.

res2k commented 17 hours ago

Turned this into https://github.com/res2k/q2proto/issues/2