term.gfx.loop.ticker

term.gfx.loop

ticker(fps) -> ticker

Create a frame ticker for a custom loop

Returns { step = <seconds>, tick = fn }.

Each ticker:tick() sleeps until the next frame boundary and returns the delta time (seconds) since the previous tick.

Use it when you want to drive your own loop body rather than hand callbacks to loop.