GameLoop

from acron.fixed_loop import GameLoop
class GameLoop(physics=None, task_mgr=None, clock=None, input_map=None, rate_hz: float = 60, max_steps: int = 5, max_debt_s: float | None = None)

Bases: object

Drives fixed-step physics over registered nodes, exposing alpha.

physics is a acron.world.PhysicsWorld (or anything with a do_physics(dt)), or None for a pure fixed-step callback runner. task_mgr/clock are only needed for start() (the real-time task); headless tests skip them and call step().

Inheritance diagram

digraph inheritancee079d85430 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "GameLoop" [URL="acron.fixed_loop.GameLoop.html#acron.fixed_loop.GameLoop",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="Drives fixed-step physics over registered nodes, exposing ``alpha``."]; }