# Strategy for drawing a million objects/rectangles?

**URL:** <https://discourse.processing.org/t/strategy-for-drawing-a-million-objects-rectangles/42419>\
**Category:** Coding Questions\
**Created:** [July 14, 2023, 12:37pm UTC](https://discourse.processing.org/t/strategy-for-drawing-a-million-objects-rectangles/42419 "2023-07-14T12:37:31Z")\
**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:** [July 14, 2023, 5:17pm UTC](https://discourse.processing.org/t/strategy-for-drawing-a-million-objects-rectangles/42419/2 "2023-07-14T17:17:04Z")

</div>

Hello,

A related discussion:

> [@P3D performance with 62500 boxes](https://discourse.processing.org/t/p3d-performance-with-62500-boxes/3821):
>
> I have a program that I wrote a long time ago using the GLGraphics library and that I’m trying to port into Processing 3.0. It is a program that has 62500 boxes independently moving all over the place. In P151 I used coordinate and color lists and updated them using updateVertices(coords); and updateColors(colors). Even with 62500 boxes it ran perfectly at 60 fps. Now in P3 I have created a PShape(GROUP) called thisModel and it contains 62500 PShapes or boxes. When I try to translate the boxes i…

May be something of interest in there…

`:)`

---

_[View the full topic](https://discourse.processing.org/t/strategy-for-drawing-a-million-objects-rectangles/42419)._
