I was curious if there was a way to view memory management in the console log viewer? I seem to be having a slow frame rate issue and have not really pinned it down to what it is that could be causing a memory leak (besides the fact that my shoddy newbie programming generally sucks).
I have attempted to trim off as much as I could: changing values of existing tables instead of making new ones, recycling entities instead of deleting them and creating new ones, copying entities into maps before the game starts, only using update(step) for entities when necessary and disabling when not needed and using random intervals in schedule calls.
I would like a way to monitor memory usage during runtime and find out where variables and tables are sitting, as far as garbage collection is concerned. I read several Lua articles dealing with memory monitoring, but none of the code blocks I tried yielded results other than errors that I don't comprehend.
Since the issue doesn't raise until over half way through test play, I'm guessing it must be a compounding memory usage problem caused by my code somewhere.
Also, I have noticed an occasional "string too long" error when saving and retrieving VectorToString and StringToVector to (and from) the data manager, but it only occurs when I have a log message that prints out the string/vector in question. Would that also cause a silent leak when the log message is disabled (as if the exception is only caught when using LogMsg)?
Sorry if I sound ignorant. I really am. Any advice would be greatly appreciated!