# Sketch runs slow in P5.js WEBGL, (SOLVED by using P5.Geometry)

**URL:** <https://discourse.processing.org/t/sketch-runs-slow-in-p5-js-webgl-solved-by-using-p5-geometry/31990>\
**Category:** Coding Questions\
**Created:** [August 29, 2021, 2:33am UTC](https://discourse.processing.org/t/sketch-runs-slow-in-p5-js-webgl-solved-by-using-p5-geometry/31990 "2021-08-29T02:33:50Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![KumuPaul](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kumupaul/32/13072_2.png) [@KumuPaul](https://discourse.processing.org/u/KumuPaul)\
**Post date:** [September 18, 2021, 8:42pm UTC](https://discourse.processing.org/t/sketch-runs-slow-in-p5-js-webgl-solved-by-using-p5-geometry/31990/21 "2021-09-18T20:42:41Z")

</div>

I thought this might interest you: Here’s an example I made for the article I’m writing. [This example](https://editor.p5js.org/Kumu-Paul/sketches/AnHr8yL2a) is designed to support variable `detailX`/`detailY` and leverage the built in capabilities of `computeFaces()` and `computeNormals()`:

https://preview.p5js.org/Kumu-Paul/embed/AnHr8yL2a

---

_[View the full topic](https://discourse.processing.org/t/sketch-runs-slow-in-p5-js-webgl-solved-by-using-p5-geometry/31990)._
