ELScheduler - scheduler/timer library

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
Imagic
Prole
Posts: 37
Joined: Mon Sep 30, 2019 8:20 am

ELScheduler - scheduler/timer library

Post by Imagic »

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
User avatar
Imagic
Prole
Posts: 37
Joined: Mon Sep 30, 2019 8:20 am

Re: ELScheduler - scheduler/timer library

Post by Imagic »

Major bug fix: more here, fixed in 1.1.

This bug can result in out-of-order trigger of timers.
Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests