# Drawing and orbiting a shape with many vertices

**URL:** https://discourse.processing.org/t/drawing-and-orbiting-a-shape-with-many-vertices/30375
**Category:** Coding Questions
**Created:** [May 30, 2021, 6:03pm UTC](https://discourse.processing.org/t/drawing-and-orbiting-a-shape-with-many-vertices/30375 "2021-05-30T18:03:05Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)
#### Post date: [May 30, 2021, 9:26pm UTC](https://discourse.processing.org/t/drawing-and-orbiting-a-shape-with-many-vertices/30375/2 "2021-05-30T21:26:55Z")

</div>

Hi,

Welcome to the forum! 😉

How many vertices do you need to draw?

If the shape doesn’t change, it might not be faster because it depends on how much time the computer takes to compute the curve points you are drawing. If you are doing an expensive computation to compute the line then yes but if you have a lot of vertices to draw it’s not the same issue.

Also it’s not entirely related to your question but you might want to read this previous thread about rendering on the GPU :

> [@Making use of the GPU to render huge amount of objects](https://discourse.processing.org/t/making-use-of-the-gpu-to-render-huge-amount-of-objects/26267):
>
> Hi, I’m new to p5.js and WebGL, so I’m not sure if I’m using the right terminology. Let’s start with the problem: We’re currently displaying a map of objects (simple rectangles with text in them, plus some single lines). Unfortunately, the number elements can go up to 25,000, probably even more, which completely crushes the performance. At the moment, we do all the draw calls in the draw() function, which I assume, is the main problem. In an older version, there’s a manual check, if an objec…

---

_[View the full topic](https://discourse.processing.org/t/drawing-and-orbiting-a-shape-with-many-vertices/30375)._
