Problem:
Phone has X megabytes of memory.
Game has few levels Y megabytes each. (for instance, Y = 0.75 * X)
I wonder how I can load first level, then unload it, and load second level immediately.
How I can unload textures manually or in deterministic way.
I can't find answer in documentation.
I tried this code:
texture = nil
collectgarbage("collect")
but it doesn't work.
Sorry for my english, I hope you understand me.
Comments
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
Maybe GC will release the object later, but I need guaranteed disposal.
Likes: Kellog
"It's not unusual" :-\" to see the memory total fluctuate around a value and then settle down - it depends on what else Lua is doing at the time.
(sneaky Tom Jones ref with the smiley )
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill