(memory) Problem adding and removing worldshadowlights multiple times
-
Hey,
While programming on my project i stumbled across another problem. I initialize and deinitalize my "3d" world at the end and start of my game loop but i noticed the game and fuze would crash hard if i did this about 100 times (like going playing 100 games starting from titlescreen).
I have traced it down to adding a worldshadowlight and destroying that light. after running it for 100 loops in this test program i get a memory allocation failed. And even fuze itself has become unstable then. If you get that error you have to restart fuze or it will crash on itself later on (for example when going to programs or even media or so).
I have shared the test program but its still pending. Maybe there is something wrong with my code or there might be a bug somewhere in fuze's code dealing with this. Not sure if people actually already tested adding and removing a worldshadowlight multiple times.
this is the code:
and this is the code it's still pending but should be downloadable as soon as it's approved
remeber if you test this out you will have to restart fuze.
Does anyone see anything wrong with the code that i do ? thanks
-
I know that in the next patch there's a fix for memory leaks with point shadow lights, but I can't remember if it also addresses world shadow lights. Maybe @Dave can test it out.
-
@Willpowered thanks for the info did not know that, it could indeed be the same or similar problem, but i was not entirely certain it was fuze's fault or my codes fault. Lets hope both are fixed at the same time
-
@Willpowered @Dave just tested with 3.0.0 i think memory bug with worldshadowlight is not fixed. PS i only tested worldshadowlight as i'm not using any pointshadowlights
-
just tested in 3.1.0 bug still exists