Change FPS during runtime

I want to give the player the option to change the game FPS in the game settings. I am able to add target FPS in the game config and it works properly. However, I cannot find a way to change it during the runtime.

:wave:

game.loop.stop();

Phaser.Core.TimeStep.call(game.loop, game, fpsConfig);

game.loop.start(game.step.bind(game));
1 Like

Yes I can confirm this method works. Thank you :blush:

1 Like