How to simulate the game at maximum speed ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Badada

I’m looking to hack around with Godot and Reinforcement Learning (like )

In order to do so I would need to run the game at the maximum speed my computer power allows.

Using the server (headless) binary of Godot I can focus all the resources on the physics&logic and not waste on rendering, but still I don’t know how to tell godot to run the whole game faster.

So the question is not about how to set a higher FPS but rather how to run a game so that it computes the physic&logic as fast as possible, so that Godot can be used as a simulation tool.

Is it something possible ?

:bust_in_silhouette: Reply From: Roman Tupikov


:bust_in_silhouette: Reply From: Calinou

Take a look at the --fixed-fps and --disable-render-loop command-line arguments added in Godot 3.0.

--disable-render-loop  Disable render loop so rendering only occurs when called explicitly from script.
--fixed-fps <fps>      Force a fixed number of frames per second. This setting disables real-time synchronization.

There’s some more information about those flags in the pull request’s discussion thread.

wow how did I missed that PR ! This is exactly what I need, thanks a lot

Badada | 2018-08-15 19:01