# hint(ENABLE\_DEPTH\_SORT) issues

**URL:** https://discourse.processing.org/t/hint-enable-depth-sort-issues/16804
**Category:** Coding Questions
**Created:** [January 2, 2020, 10:16am UTC](https://discourse.processing.org/t/hint-enable-depth-sort-issues/16804 "2020-01-02T10:16:45Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Tiemen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tiemen/32/5477_2.png) [@Tiemen](https://discourse.processing.org/u/Tiemen)
#### Post date: [January 2, 2020, 10:58am UTC](https://discourse.processing.org/t/hint-enable-depth-sort-issues/16804/2 "2020-01-02T10:58:42Z")

</div>

A while back @hamoid shared a piece of code that combines several types of ` hint`: [Program to test hint() with transparency](https://discourse.processing.org/t/program-to-test-hint-with-transparency/4361/5). Maybe there is something in there which works better for your sketch.

Your performance issue can likely be improved by optimizing your code. If you manage to figure out where your sketch is having a hard time, you could try to do more in-depth research how to improve these parts. There is a nice guide on [https://github.com/processing/p5.js/wiki/Optimizing-p5.js-Code-for-Performance](https://github.com/processing/p5.js/wiki/Optimizing-p5.js-Code-for-Performance) that explains possible methods. It’s for P5 sketches, but the same principles can be applied on your Processing Java sketch.

---

_[View the full topic](https://discourse.processing.org/t/hint-enable-depth-sort-issues/16804)._
