# Is P3D inherently slow and/or is there a fast alternative?

**URL:** <https://discourse.processing.org/t/is-p3d-inherently-slow-and-or-is-there-a-fast-alternative/22889>\
**Category:** Coding Questions\
**Created:** [July 28, 2020, 10:28pm UTC](https://discourse.processing.org/t/is-p3d-inherently-slow-and-or-is-there-a-fast-alternative/22889 "2020-07-28T22:28:21Z")\
**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 29, 2020, 2:32am UTC](https://discourse.processing.org/t/is-p3d-inherently-slow-and-or-is-there-a-fast-alternative/22889/2 "2020-07-29T02:32:48Z")

</div>

This may be of interest:

> [@I need know vertex after rotate](https://discourse.processing.org/t/i-need-know-vertex-after-rotate/12719/16):
>
> Something else I tried… This is rotating shape and updating co-ordinates. I had to rotate the PVector of the vertex. PShape s; float theta; void setup() { size(600, 600, P2D); s = createShape(); s.beginShape(QUADS); s.vertex(0, 0); s.vertex(160, 0); s.vertex(160, 160); s.vertex(0, 160); s.endShape(CLOSE); fill(0); textAlign(CENTER); textSize(16); } void draw() { background(255); translate(width/2, height/2); // theta += TAU/100; for (int i = 0; i \< s.…

I modified that example for P3D, added a z and created a textured shape in setup() and changed vertices in draw().

`:)`

---

_[View the full topic](https://discourse.processing.org/t/is-p3d-inherently-slow-and-or-is-there-a-fast-alternative/22889)._
