Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Cache VariableExpressions on load. #14524
Compiling these expressions is sadly expensive, and we needed new ones for every trait on every actor each time one was generated. The expressions thankfully can be shared as they are pure functions, which removes this overhead.
Saves 15% of CPU during initial game load (caused by loading actors for the RA shellmap). This would also save a bit of CPU when creating new actors during regular games too.