# Problem with frameRate

**URL:** <https://discourse.processing.org/t/problem-with-framerate/8151>\
**Category:** Beginners\
**Created:** [February 6, 2019, 10:39am UTC](https://discourse.processing.org/t/problem-with-framerate/8151 "2019-02-06T10:39:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jensemand](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jensemand](https://discourse.processing.org/u/jensemand)\
**Post date:** [February 6, 2019, 10:39am UTC](https://discourse.processing.org/t/problem-with-framerate/8151/1 "2019-02-06T10:39:18Z")

</div>

Hi i am making a game where the framerate has to be 60. However when i write  
frameRate(60); in void setup and  
println(frameCount) in draw it seems the frameCount is around 20. It Would be nice to know if there’s anything i can do to change this

---

<div class="post-metadata">

**Author:** ![TfGuy44](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tfguy44/32/41_2.png) [@TfGuy44](https://discourse.processing.org/u/TfGuy44)\
**Post date:** [February 6, 2019, 10:53am UTC](https://discourse.processing.org/t/problem-with-framerate/8151/2 "2019-02-06T10:53:05Z")

</div>

Yeah - remove your call to `println()`. It’s pretty slow, and doesn’t like being called every frame.

---

<div class="post-metadata">

**Author:** ![jensemand](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jensemand](https://discourse.processing.org/u/jensemand)\
**Post date:** [February 6, 2019, 10:59am UTC](https://discourse.processing.org/t/problem-with-framerate/8151/3 "2019-02-06T10:59:27Z")

</div>

That doesn’t seem to be the problem. I am using delay in void draw and it effects the frameRate. how can i set the framerate to 60 while still using the delay?

---

<div class="post-metadata">

**Author:** ![TfGuy44](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tfguy44/32/41_2.png) [@TfGuy44](https://discourse.processing.org/u/TfGuy44)\
**Post date:** [February 6, 2019, 11:00am UTC](https://discourse.processing.org/t/problem-with-framerate/8151/4 "2019-02-06T11:00:46Z")

</div>

Wait. Hold on. You have calls to `delay()` in your code?

Yeah, remove those too. Normally I would post a rant about how awful `delay()` is. Basically it is not the function you want at all. Look up `millis()` instead.

---

<div class="post-metadata">

**Author:** ![jensemand](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jensemand](https://discourse.processing.org/u/jensemand)\
**Post date:** [February 6, 2019, 11:02am UTC](https://discourse.processing.org/t/problem-with-framerate/8151/5 "2019-02-06T11:02:55Z")

</div>

thank you for the help
