lukakldiashvili / Unified-Universal-Blur

UI blur (translucent) effect for Unity.
MIT License
427 stars 33 forks source link

Heap allocations resulting in significant preformance loss. #10

Closed matyX6 closed 1 year ago

matyX6 commented 1 year ago

I loved this blur effect for URP but to an unpleasant surprise I find the asset has heap allocation resulting in performance loss... This is how I fixed the problem by cacheing "PassData" object to not be created and garbage collected every pass. Images attached here:

gc_1 gc_2

lukakldiashvili commented 1 year ago

Thank you for bringing up the issue. Will take a look when possible and release an updated version.

lukakldiashvili commented 1 year ago

Fixed this issue in the latest release 0.2.3

Feel free to re-evaluate the performance and please, share the results if you find something of interest. Again, thank you.

matyX6 commented 1 year ago

Issue is fixed and performance is back to normal. Thank you for the fast update!