Class: RenderLoop

RenderLoop(stage)

A RenderLoop causes a Stage to be rendered on the next frame when it reports that its contents are invalid. The loop may be manually started/stopped and begins in the stopped state.

Constructor

new RenderLoop(stage)

Parameters:
Name Type Description
stage Stage

Methods

destroy()

Destructor.

renderOnNextFrame()

Request a render on the next frame, even if the stage contents remain valid. Does nothing if the loop is stopped.

stage() → {Stage}

Get the underlying stage.

Returns:
Type
Stage

start()

Start the render loop.

stop()

Stop the render loop.