# Performance loss with PGraphics and SVG

**URL:** <https://discourse.processing.org/t/performance-loss-with-pgraphics-and-svg/12897>\
**Category:** Coding Questions\
**Created:** [July 22, 2019, 8:25pm UTC](https://discourse.processing.org/t/performance-loss-with-pgraphics-and-svg/12897 "2019-07-22T20:25:13Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [September 16, 2019, 6:38pm UTC](https://discourse.processing.org/t/performance-loss-with-pgraphics-and-svg/12897/23 "2019-09-16T18:38:59Z")

</div>

> [@neilcsmith](#):
>
> IIRC there’s an issue where you can’t change the texture for the shape later.

If I’m thinking of the same issue, there was a recent discussion about using `s.getTessellation()` as a workaround for this.

> [@PShape texture only applies colour not text?](https://discourse.processing.org/t/pshape-texture-only-applies-colour-not-text/13596/10):
>
> Terribly sorry, should have actually shared it from my test sketch – perhaps I forgot the return type? Anyhow, Replace this line: // roundRect.setTexture(textBoxPGraphics); roundRect = addTextureUV(roundRect, textBoxPGraphics); … and add THIS function: /\*\* \* https://github.com/processing/processing/issues/2508#issuecomment-50774212 \*/ PShape addTextureUV(PShape s, PImage img) { PShape s2 = s.getTessellation(); // github.com/processing/processing/issues/2508#issuecomment-52296723 s2.s…

---

_[View the full topic](https://discourse.processing.org/t/performance-loss-with-pgraphics-and-svg/12897)._
