# Why is square(x, y, 1) so much faster than point(x, y)?

**URL:** <https://discourse.processing.org/t/why-is-square-x-y-1-so-much-faster-than-point-x-y/45448>\
**Category:** Processing\
**Created:** [December 10, 2024, 9:24pm UTC](https://discourse.processing.org/t/why-is-square-x-y-1-so-much-faster-than-point-x-y/45448 "2024-12-10T21:24:42Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![DevaPan](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@DevaPan](https://discourse.processing.org/u/DevaPan)\
**Post date:** [December 13, 2024, 1:59pm UTC](https://discourse.processing.org/t/why-is-square-x-y-1-so-much-faster-than-point-x-y/45448/5 "2024-12-13T13:59:24Z")

</div>

Thanks for clearing some things up.  
There is also a related discussion here:

> [@Rect(x,y,1,1); VS. point(x,y);](https://discourse.processing.org/t/rect-x-y-1-1-vs-point-x-y/13299):
>
> Can you guys try this? (try changing the size() on your computers) boolean rectOrPoint; void setup() { size(600, 300); //play with these: make those bigger if you've got a fast modern computer rectOrPoint = false; println(rectOrPoint ? "rect(x, y, 1, 1);" : "point(x, y);"); } void draw() { for (int j=0; j\<height; j++) { for (int i=0; i\<width; i++) { if (rectOrPoint) { fill(random(255), random(255), random(255)); noStroke(); rect(i, j, 1, 1); } …

---

_[View the full topic](https://discourse.processing.org/t/why-is-square-x-y-1-so-much-faster-than-point-x-y/45448)._
