LoopManager

constructor(targetFPS: Int, updateFunction: (deltaTime: Long) -> Unit, renderFunction: () -> Unit)

Parameters

targetFPS

The target frames per second.

updateFunction

The function to call for updating logic.

renderFunction

The function to call for rendering.