Hello community,
I am working on a simulation that has to loop as fast as possible. But drawing the screen (rendering) should only happen with 60fps.
How can I make the gameloop independend from the rendering?
Currently I can reach over 1200 game loops if rendering is switched off. If I switch it on, the game loop slows down to 400. I presume that in this case the rendering happens also 400 times per second. So the thought would be that if I only render 60 times per second, the game loop would speed up again.
For sure, you can choose how much stuff to do in blueprint before the next frame happens.
If your game code is too heavy, it will pull the frame rate down. But there are things you can do to tell the engine you want to run the rest of the code in the next frame. For instance