Graphics::ForceGameRender Function

Forces the game to render a new frame. This function is experimental.

Syntax

void Graphics::ForceGameRender()

Return value

None.

Remarks

Calling this function will itself call the Render() callback in your plugin. This function cannot be called from within the Render() callback itself.

The primary use case of this function is to allow mixing the SimulationOnly property with game rendering. This allows rendering game frames on demand while running the simulation at full speed without running any other systems. It also allows invoking any specific processing in Render(). As a result, TMInterface will also run its own processing code and e.g make reloading plugins work correctly.

Plugins that use this function may then capture game screenshots from the Render() callback and send them to another process over a socket.