boatbomber/GradientCanvas

Potential memory leak during consecutive renders

Opened this issue · 1 comments

Hello, I may have found a potential memory leak when trying to call the Render function multiple times. Below is a place file that can replicate the issue. When opening up the Performance panel and monitoring the LuaHeap (PerformanceStats > Memory > PlaceMemory), it increases around 10 MB after the canvas is rerendered.

Not sure what could be causing the leak, but it's definitely enough to cause significant performance issues after just a few minutes.

Leak.rbxl

I am also experiencing this issue. It's severe enough to make the tool unusable when doing a lot of rendering.