# How make game independent of frame rate

**URL:** https://discourse.processing.org/t/how-make-game-independent-of-frame-rate/44312
**Category:** Coding Questions
**Created:** [April 18, 2024, 4:27pm UTC](https://discourse.processing.org/t/how-make-game-independent-of-frame-rate/44312 "2024-04-18T16:27:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![payalo](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@payalo](https://discourse.processing.org/u/payalo)
#### Post date: [April 18, 2024, 4:27pm UTC](https://discourse.processing.org/t/how-make-game-independent-of-frame-rate/44312/1 "2024-04-18T16:27:52Z")

</div>

how i can make game independent of frame rate?

example:  
frame rate is 360 = all functions are perform 360 times per second  
frame rate is 240 = all functions are perform 240 times per second  
frame rate is 120 = all functions are perform 120 times per second

but how can I make it work like this:

the game must be completed 360 times per second

frame rate is 360 = game performs 360 times per second  
frame rate is 240 = game performs 360 times per second  
frame rate is 120 = game performs 360 times per second

and so on

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [April 18, 2024, 4:40pm UTC](https://discourse.processing.org/t/how-make-game-independent-of-frame-rate/44312/2 "2024-04-18T16:40:18Z")

</div>

maybe see here [frameRate, frameCount and millis | Quark's musings](http://lagers.org.uk/blog/?p=63)
