Safe memory level.

I have an app that I have been working on and at first I thought it would be a good idea to keep tabs on how much memory its was using (105 for level 1). At some point during my development process I stopped monitoring. Later on I noticed I had stopped and decided to start monitoring again (a week or two passed, memory now at 222 for level 1). Since I stopped monitoring I have no idea what caused the memory to jump. I can assume its not because of a memory leak because the values drop to the same place when the levels are switching.

But seeing that some of my level load at 400 and can sometimes finish at around 500+ I was wondering what exactly is a safe range? What is the maximum amount of memory I can use before I experience problems? What can I do to make the memory levels go down some without affecting my code?

-Chandler Mayo [import]uid: 104852 topic_id: 25664 reply_id: 325664[/import]

Is this Lua memory or texture memory?

If it’s the Lua memory reported by gcinfo() then it’s trivial in the grand scheme of things. That value is in Kilobytes (divide by 1024) to scale to Megabytes. I generally don’t worry about the size of my lua memory. I worry about it going up and up during a run and not coming back down (i.e. a leak).

A couple of good sized Lua tables will get you that kind of usage.
Now if your app is pushing 400Megabytes of texture memory, then you have a problem.
[import]uid: 19626 topic_id: 25664 reply_id: 103777[/import]

Lua memory, the texture memory has never gone above 40. [import]uid: 104852 topic_id: 25664 reply_id: 103778[/import]