source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

perf: use static ConVarRefs during relatively hot functions

Open mastercoms opened this issue 10 months ago • 0 comments

instead of doing a O(n) lookup per frame in some cases, we can just init the ConVarRef once

these ones are just possible during runtime or called relatively more compared to other non-static ConVarRefs

there is one in R_LoadSkys for skyname as well, but not sure if that was fixed or not

mastercoms avatar Feb 19 '25 09:02 mastercoms