livesplit-core icon indicating copy to clipboard operation
livesplit-core copied to clipboard

Added runtime_get current_tick

Open Jujstme opened this issue 1 year ago • 1 comments

This adds a new tick field that increases by 1 at every call of the update function. This can be used for different purposes, eg. for caching data or to check (together with the current tick rate, albeit in an approximate way), the amount of time passed when executing code between iterations of the main autosplitting loop.

Jujstme avatar Jul 08 '24 15:07 Jujstme

I'm not sure I like it. This adds an atomic increment (slower than a normal increment even) to every update tick, even if the auto splitter never even needs this functionality. An auto splitter can easily just increment their own counter.

CryZe avatar Aug 22 '24 15:08 CryZe