Update
v0.1.1April 24, 2026Performance Improvements #1
Hey y'all, I just pushed the first patch to the server regarding the performance.
Here's what's new in Cops&Robbers v0.1.1:
Performance Fixes
- ›Shooting logic now caches more information to avoid many allocations/deallocations whilst shooting
- ›The world widgets were taking up performance even when invisible, we made sure they are now only active when you are nearby
- ›The vehicles were taking up too much performance when nobody was driving them, we optimized their resting states
- ›Overall, in a lot of different systems, we now throttle logic, meaning they wont be executed each frame, but each second for example
- ›In a lot of different systems we noticed we were allocating/deallocating a lot of memory, we are now caching stuff where we can to improve this
- ›We removed some leftover scene.getcomponent calls from during testing (these can be quite expensive)
- ›We changed the FixedUpdateFrequency from 50 to 40, this alone should greatly impact performance, but it can lead to slightly different vehicle feel, we can adjust this if needed.
- ›A bunch of small improvements all throughout the codebase
So far, we're noticing 20%-40% improvements to framerate, depending on the specific situation, as well as the PC hardware.
We will continue to improve the performance throughout, but this should already be a nice upgrade!