debugMode method

bool debugMode()

Returns whether this Game is in debug mode or not.

Returns false by default. Override to use the debug mode. In debug mode, the _recordDt method actually records every dt for statistics. Then, you can use the fps method to check the game FPS. You can also use this value to enable other debug behaviors for your game, like bounding box rendering, for instance.

Implementation

bool debugMode() => false;