# Change FPS during runtime

**URL:** <https://phaser.discourse.group/t/change-fps-during-runtime/14944>\
**Category:** Phaser 3\
**Created:** [November 19, 2024, 1:56pm UTC](https://phaser.discourse.group/t/change-fps-during-runtime/14944 "2024-11-19T13:56:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hakimvira](https://avatars.discourse-cdn.com/v4/letter/h/43a26b/32.png) [@Hakimvira](https://phaser.discourse.group/u/Hakimvira)\
**Post date:** [November 19, 2024, 1:56pm UTC](https://phaser.discourse.group/t/change-fps-during-runtime/14944/1 "2024-11-19T13:56:30Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [November 19, 2024, 3:13pm UTC](https://phaser.discourse.group/t/change-fps-during-runtime/14944/2 "2024-11-19T15:13:07Z")

</div>

👋

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

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

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

```

---

<div class="post-metadata">

**Author:** ![Hakimvira](https://avatars.discourse-cdn.com/v4/letter/h/43a26b/32.png) [@Hakimvira](https://phaser.discourse.group/u/Hakimvira)\
**Post date:** [November 19, 2024, 3:50pm UTC](https://phaser.discourse.group/t/change-fps-during-runtime/14944/3 "2024-11-19T15:50:07Z")

</div>

Yes I can confirm this method works. Thank you 😊

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [June 19, 2026, 5:22pm UTC](https://phaser.discourse.group/t/change-fps-during-runtime/14944/4 "2026-06-19T17:22:20Z")

</div>

Since Phaser v4.2 use

```
game.loop.setFPSLimit(fps)

```
