world.cpu and (I assume) world.map_cpu are averages, built off a 16 slot fixed size rolling average. This is fine most of the time because like, we want average values.
In service of https://www.byond.com/forum/post/2959355, I am trying to implement softcode that consumes up to a threshold of cpu in order to reduce clientside jitter. In order to do this safely I need to ensure the less controlled aspects of our codebase do not cause us to enter overtime (verbs, sleeping procs, ect).
Because of this (and a yearning for ensuring we don't underconsume cpu) I want to know the PRECISE amount of cpu consumption in the last tick, not the average.
I've tried implementing a deaveraging system (again in softcode), and that's fine and all but it bricks on world restart, since that buffer carries between rounds in a way I can't fully capture (also I'm dealing with floats right so there's compounding error).
What I'm asking for is either a raw version of these variables, or a flag I can set to make them raw. Either would be fine
ID:2968149
![]() Mar 25, 7:12 pm
|
|||||||
| |||||||
Login to reply.