Hello, I am having a problem with my ray tracing plugin. I had encountered the problem weeks from now, however, to that time I just ignored it as other stuff was more important. Anyway, now that I am looking towards to the release of the plugin I want to give the Users a good experience while using it.
The only thing is that the Ray-Tracing plugin I’ve made has a huge memory leak.
-
What do you want to achieve? Keep it simple and clear!
(Re-) rendering bigger scenes without studio crashing due to bad allocation (no RAM). -
What is the issue? Include screenshots / videos if possible!
Whenever I rerender a scene, the memory used for the previous render is not garbage-collected. Meaning that just piling up. I am using Frames to draw the image produced by the Ray-Tracing algorithm. Whenever a new render starts, all those previous frames (up to 6k) get removed (They are parented to a folder, I use the :ClearAllChildren() method to remove all frames), it removes the frame but does not free the used memory. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Changing :ClearAllChildren() to :Destory() and :Remove()-method.
I have no idea why that is, I think it has to do with how roblox studio handles the collection of garbage on plugins.
Any help is appriciated!