Memory Problems and can't find it...

Storyboard removes the display objects, im not sure if it Nils the references or not though.

I generally nil them to be sure in exitscene or whatever.

Glad to hear that it’s fixed :slight_smile:

Mmmm well, if it doesn’t nil the references… i’m gonna have a very bad time now :slight_smile: But where should I nil all of them ? In exitScene ? Or right before I call gotoScene() ? Or at the end of each scene:createScene / scene:enterScene / scene:exitScene ?

Hope that it will fix my problem (or at least, a huge part of it) !

Well thanks to all of you anyway !  :slight_smile:

I don’t use storyboard myself so I’d wait for someone more experienced with storyboard to weigh in before you take my assumption as gospel :wink:

Cheers

Try taking out the removeScene from your exitScene function (in every storyboard scene). You’re already removing the scenes during your enterScene event anyway.

I’ve already removed the removeScene from the exitScene function. Instead, I’ve got removeAll() in enterScene of each scene to be sure.

Right now, the texture memory increase of 0.004 mb every time (which seems not too bad ?) but still, LUA memory is still increasing every time of 10~20 kb. Actually, I have on idea how bad it is…