# Running really slow for a relatively simple program

**URL:** <https://discourse.processing.org/t/running-really-slow-for-a-relatively-simple-program/20762>\
**Category:** Coding Questions\
**Created:** [May 11, 2020, 11:14pm UTC](https://discourse.processing.org/t/running-really-slow-for-a-relatively-simple-program/20762 "2020-05-11T23:14:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [May 11, 2020, 11:39pm UTC](https://discourse.processing.org/t/running-really-slow-for-a-relatively-simple-program/20762/2 "2020-05-11T23:39:27Z")

</div>

Hello,

It rocks with:  
`size(1000, 1000, FX2D);`

and

`size(1000, 1000, P3D);`

P3D rapidly declined as density increased.

I added this to monitor frameRate:

```auto
  if (frameCount%5 == 0)
    surface.setTitle(str(frameRate));

```

[https://processing.org/reference/setTitle\_.html](https://processing.org/reference/setTitle_.html)

There is a comment about _FX2D_ here:  
[https://processing.org/reference/environment/](https://processing.org/reference/environment/)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/e/e02c40ecfaae7cdc80f0b48d8e8cc61c976556a6.jpeg)

`:)`

---

_[View the full topic](https://discourse.processing.org/t/running-really-slow-for-a-relatively-simple-program/20762)._
