Game Loop with physics at fixed frame rate but without screen update. How to do?

I am writing a simulation that evolves virtual creatures. When a simulation run is started many calculations are necessary using the physics engine which updates the position of the creatures that are interacting with the surroundings). But during such a simulation run it is not necessary to actually draw something on the screen so the screen may stay dark.
Updating and drawing the screen would just cost time.

So my question is:

Can I tell the engine to not draw anything but step the physics engine at a fixed rate?
I am hoping for a much much faster game loop that loops in just a few microseconds but stepping the physics with 1/60th of a second.

Any help is highly appreciated :slight_smile:

Thanks, Alex

Maybe try:


Do the updates, then turn it back on.

Would probably need an “initializing world” game state for all objects, where they wouldn’t play sounds and likely ignore the player.

thank you Jacko, I will try that! Greets