Embeddable Lua Scheduler is a pure Lua library to manage timers.
It's embeddable for game loops and features the creation of timers.
It is implemented with a binary heap to manage timers, for performances; this results in a complexity of ~O(log₂n) for each trigger (or removal) and O(1) otherwise.
I personally use a scheduler as a layer on top of the LÖVE application time functions; the whole game can be slowed/accelerated/paused from the scheduler input and time is consistent for a single frame.
Project and documentation: https://github.com/ImagicTheCat/ELScheduler
ELScheduler - scheduler/timer library
Who is online
Users browsing this forum: Ahrefs [Bot] and 49 guests