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:

// Phaser v3 to v4.1:
game.loop.stop();

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

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

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

Since Phaser v4.2 use

game.loop.setFPSLimit(fps)