class

RenderLoop::LoopHarness

Inherits Reference / Object

Manages the main rendering loop TODO: put rendering and state in their own threads.

Constructors

new(frame_rate : Float64, engines : Array(RenderLoop::Engine))
Source

Instance methods

on_tick

Executed before each tick in the main loop. This allows the graphics context to perform operations if necessary.

Source
start(window : RenderLoop::Window)

Signals the loop to begin running in the window This should be ran inside your graphics context otherwise you will receive an error This is a noop if the loop is already running.

Source
stop

Signals the loop to finish up and stop, and the graphics context to shut down.

Source