Skip to content

Instantly share code, notes, and snippets.

@OhGodANoob
Created August 16, 2022 12:55
Show Gist options
  • Save OhGodANoob/b8e94fab60d0a75629b3bc2ed947ce7b to your computer and use it in GitHub Desktop.
Save OhGodANoob/b8e94fab60d0a75629b3bc2ed947ce7b to your computer and use it in GitHub Desktop.
rate 786432 // def. 196608 min. 20480 max. 786432 - Maximum Download Bandwidth in bytes per second.
cl_cmdrate 128 // def. 64 min. 10 max. 128 - Maximum Command Packets per second, sending to the Server. - DO NOT SET THIS HIGHER THAN YOUR MINIMAL FPS!
cl_updaterate 128 // def. 64 - Maximum number of Update Packets per second, received from the Server. Gets adjusted by the Servers TickRate if Server TR < cl_updaterate. Also bound to cl_cmdrate via sv_client_cmdrate_difference 0.
cl_interp_ratio 2 // def. 2 min. 1 max. 5 - Ratio of interpolation Time (values from 1 to 2 are enforced by almost all servers via the setting `sv_competitive_minspec 1`).
// Common interpolation values calculated via "cl_interp_ratio / cl_updaterate":
// Tickrate 64: cl_interp_ratio 2 / cl_updaterate 64 = lerp 31.250 ~31.3ms interpolation time
// Tickrate 64: cl_interp_ratio 1 / cl_updaterate 64 = lerp 15.625 ~15.6ms interpolation time
// Tickrate 128: cl_interp_ratio 2 / cl_updaterate 128 = lerp 15.625 ~15.6ms interpolation time
// Tickrate 128: cl_interp_ratio 1 / cl_updaterate 128 = lerp 7.813 ~ 7.8ms interpolation time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment