coolbutuseless on Nostr: Introducing {governor} for limiting rate of loop execution. This pkg was created ...
Introducing {governor} for limiting rate of loop execution.
This pkg was created because I need to generate a stable framerate when outputting animations made with {nara} - ideally 30fps.
{governor} adjusts the sleep time within a loop dynamically to compensate for the time it takes to run the code so as to maintain the desired looping time.
{governor} can advise you to skip frames if work is taking too long!
Pkg also includes an alarm timer.
https://github.com/coolbutuseless/governor
#RStats
This pkg was created because I need to generate a stable framerate when outputting animations made with {nara} - ideally 30fps.
{governor} adjusts the sleep time within a loop dynamically to compensate for the time it takes to run the code so as to maintain the desired looping time.
{governor} can advise you to skip frames if work is taking too long!
Pkg also includes an alarm timer.
https://github.com/coolbutuseless/governor
#RStats