Opal::Game::Loop
High-performance 60Hz fixed-timestep game loop implementing Glenn Fiedler's "Fix Your Timestep" architecture. Decouples physics/simulation updates from variable-rate terminal frame rendering with interpolation.
Constructors
Instance methods
fps
Sourceframe_time_ms
Sourceon_render
Sourceon_update
Sourcepause
Sourcepaused?
Sourceresume
SourceRuns the main loop synchronously until stop is invoked or max_frames is reached
running?
Sourcestop
Sourcetarget_fps
SourcePerforms a single fixed-timestep update tick (useful for headless testing and step debugging)
tick_rate
Sourcetotal_frames
Sourceups
Source