# Framerate starting slow

**URL:** <https://discourse.processing.org/t/framerate-starting-slow/3549>\
**Category:** Processing\
**Created:** [September 15, 2018, 9:40am UTC](https://discourse.processing.org/t/framerate-starting-slow/3549 "2018-09-15T09:40:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sarah](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sarah/32/1675_2.png) [@Sarah](https://discourse.processing.org/u/Sarah)\
**Post date:** [September 15, 2018, 9:40am UTC](https://discourse.processing.org/t/framerate-starting-slow/3549/1 "2018-09-15T09:40:13Z")

</div>

Hi,  
I’ve been testing the `frameRate` on some of my programs lately, but I’ve noticed that when I first start the program, the `frameRate` always starts off around 15, then gradually goes up. I’m using a MacBook Air and wondering if this happens to anyone else. Here is my code:

```auto
void setup() {
  size(200,200);
}
void draw() {
  println(frameRate);
}

```

This is just a simple program, but when I’ve put it to my larger programs, the issue seems to get even worst. If anyone has any advice, or needs to ask a question, it would be greatly appreceated.

Thanks!

---

<div class="post-metadata">

**Author:** ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)\
**Post date:** [September 15, 2018, 10:23am UTC](https://discourse.processing.org/t/framerate-starting-slow/3549/2 "2018-09-15T10:23:04Z")

</div>

Hi Sarah,

Check out the reference: [frameRate / Reference / Processing.org](https://processing.org/reference/frameRate.html)

You can read that:

> The system variable **frameRate** contains the approximate frame rate of a running sketch. The initial value is 10 fps and is updated with each frame. The value is averaged over several frames, and so will only be accurate after the draw function has run 5-10 times.

Si it’s completely normal 🙂

---

<div class="post-metadata">

**Author:** ![Sarah](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sarah/32/1675_2.png) [@Sarah](https://discourse.processing.org/u/Sarah)\
**Post date:** [September 15, 2018, 11:17am UTC](https://discourse.processing.org/t/framerate-starting-slow/3549/3 "2018-09-15T11:17:15Z")

</div>

Thanks for your quick reply, I didn’t realize that it started off low, I should have read the reference before asking.

Since it starts off lower, will it affect the performance of the program too, or does it just display lower? In some of my other programs, at the start, it is very slow, but it becomes faster as the program progresses.

---

<div class="post-metadata">

**Author:** ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)\
**Post date:** [September 15, 2018, 11:20am UTC](https://discourse.processing.org/t/framerate-starting-slow/3549/4 "2018-09-15T11:20:08Z")

</div>

The frame rate is not actually lower. It is just the variable that is.

If some of your programs start slow (meaning you can actually feel it is slow not because the frameRate variable tells you so) then something else is going on.

---

<div class="post-metadata">

**Author:** ![Sarah](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sarah/32/1675_2.png) [@Sarah](https://discourse.processing.org/u/Sarah)\
**Post date:** [September 15, 2018, 12:18pm UTC](https://discourse.processing.org/t/framerate-starting-slow/3549/5 "2018-09-15T12:18:51Z")

</div>

Alright, I’ll try and figure out what else is making it slow. Thanks for all your help!
