DayZ-CommunityFramework icon indicating copy to clipboard operation
DayZ-CommunityFramework copied to clipboard

Limit CF_OnUpdate rate for perf boost

Open lava76 opened this issue 2 years ago • 2 comments

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).

lava76 avatar Feb 11 '23 15:02 lava76

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?

Arkensor avatar Aug 21 '24 12:08 Arkensor

Relevant commit on devel 317f91fceea012c54e6e309d5201a928860d2323

lava76 avatar Aug 23 '24 11:08 lava76