nanotimer icon indicating copy to clipboard operation
nanotimer copied to clipboard

add config option to change the setImmediate time usage to improve performance

Open Trickfilm400 opened this issue 1 year ago • 0 comments

Changes

add a new config parameter to the constructor to add a value to change the 25ms value which will be used to decide whether to use setTimeout or setInterval

We had an usecase with an interval of les than 24ms which needed to be accurate and the CPU usage was by 100% because of this - with the value changed to 5ms the performance was better

Trickfilm400 avatar Sep 25 '23 21:09 Trickfilm400