# This simple sketch runs much faster on p5.js (60fps) than Processing/Java (5fps)

**URL:** https://discourse.processing.org/t/this-simple-sketch-runs-much-faster-on-p5-js-60fps-than-processing-java-5fps/31300
**Category:** Processing
**Created:** [July 17, 2021, 1:36pm UTC](https://discourse.processing.org/t/this-simple-sketch-runs-much-faster-on-p5-js-60fps-than-processing-java-5fps/31300 "2021-07-17T13:36:13Z")
**Posts on this page:** 1
**Showing post:** 6

<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: [July 17, 2021, 2:52pm UTC](https://discourse.processing.org/t/this-simple-sketch-runs-much-faster-on-p5-js-60fps-than-processing-java-5fps/31300/6 "2021-07-17T14:52:45Z")

</div>

Hello,

There are references to _renderers_ here:

- [https://processing.org/reference/environment/#Renderers](https://processing.org/reference/environment/#Renderers)
- [Render Techniques / Processing.org](https://processing.org/tutorials/rendering/)
- [P3D / Processing.org](https://www.processing.org/tutorials/p3d/)

A related topic:

> [@Running really slow for a relatively simple program](https://discourse.processing.org/t/running-really-slow-for-a-relatively-simple-program/20762/2):
>
> 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: 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/)slight_smile

`:)`

---

_[View the full topic](https://discourse.processing.org/t/this-simple-sketch-runs-much-faster-on-p5-js-60fps-than-processing-java-5fps/31300)._
