SimulationManager::set_SimulationOnly Method

Allows to run the “normal race” as if it were simulation-only race.

Syntax

void SimulationManager::set_SimulationOnly(
bool simulationOnly
)

Parameters

bool simulationOnly

Return value

None.

Remarks

Setting this property to true in a normal race makes the game disable any subsystems related to rendering and player input, leaving only the simulation running. This means that the Render() callback of all plugins will not be called anymore, so a plugin that has enabled this property may not be reloaded anymore. To avoid deadlocking the game process, it is recommended to periodically call Graphics::ForceGameRender() in OnRunStep() to allow plugin reloading on external changes. This function is also useful for capturing game frames while running in simulation-only mode.

While in simulation-only mode, the only callback that will be called is OnRunStep(). All TMInterface API’s will work in the same way, that is SetInputState(), SaveState() etc.

This property may also be used to implement non-interactive bruteforce like functionality.