Anthony. Take the following with a grain of salt, as my recent posts have been taken out of context and removed for being a little to blunt. Now you know me better than that. I don't and won't forum crawl through any members posts for anyone, and neither should any one else. If someone wants help especially from me, then they need to put in the effort and provide ALL of the necessary information on the opening topic or they will get a bunch of assumptions and speculative answers from us. Other people might not have a problem forum crawling through old posts but my time is valuable as I have a busy hectic life, and my time spent helping on these boards won't be spent crawling through posts just because some OP's won't bother to put in the required time and effort to construct a decent opening question. But I appreciate the pointers you've shared above.
Regarding the OP wanting to circumvent memory allocations and decrease overall memory usage. OP would be best listening to lectures from Bjarne Stroustrup who has suggested trying to write code which does not require a lot of garbage collection. And that's best done by :
I have no problem trying to help the OP with the lag they are experiencing, and I am willing to help them to irradiate it if they provide what was previously requested. But they will need to be more forthcoming with code they are using, and for them to do that, they will first need to start
profiling their application to see what scripts are causing excessive memory usage, and then sharing the troublesome code files with the community so we can all help them to improve the code they currently have. The OP was asked to provide all relevant code twice as of now. I normally charge a minimum of €180 per hour for game developing; a typical minimum €10,000 per project. And I offer code help for free on these forums providing the OP puts in an equal amount of effort to describe their problem in detail and while providing the troublesome code as well. That's a great bargain if they would trade in some effort. If someone wants help, we should not need to crawl through their previous posts or need be told from other forums members about their previous posts, as they need to make every effort to make it easier for us to help them.