Print at Jan 26, 2022, 1:32:26 PM

Posted by db4tech at May 30, 2010, 4:09:07 PM
Re: Simulate sun position and lights/shadows
Could there be a memory leak with the shaders or SunFlow?

Thank you db4tech for giving details how to reproduce this bug.
You were on the right track because the problem comes from textures management in SunFlow. I just discovered it uses internally some kind of cache for the textures which is never reset.
Too bad we discover this problem after the version 2.4 release. sad
There's a dirty fix that I can program in the next release of the plug-in. I'll see if I do it or not.

Would the dirty fix be to force the cache to reuse the same memory address space?
If so and the cache space isn't being cleared each time, won't you then have the problem of diminishing returns? Still encountering slowdowns, eventually running out of texture memory space caused by memory fragmentation.

db5tech (Thanks Hans!) smile