DayZ-CommunityFramework
DayZ-CommunityFramework copied to clipboard
Limit CF_OnUpdate rate for perf boost
CF_OnUpdate loop is fairly expensive especially on server. Limit update rate to 25 ms on server. Significant performance boost was observed when many modules are using update loops (e.g. COT gained 10% tick rate increase on server with this change).
There was a reason why the defines were in their own file / addon some time. Not sure if this is still needed. Please clarify why it was moved. @Jacob-Mango do you remember why we had it there?
Relevant commit on devel 317f91fceea012c54e6e309d5201a928860d2323