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:
objectDrives fixed-step physics over registered nodes, exposing
alpha.physicsis aacron.world.PhysicsWorld(or anything with ado_physics(dt)), orNonefor a pure fixed-step callback runner.task_mgr/clockare only needed forstart()(the real-time task); headless tests skip them and callstep().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``."]; }