I am building a very resource intensive ballistic calculation application. On startup (after the initial calculations) the memory consumption is at 50k. The calculations are so heavy I need to divide them into slots and use a Timer and ProgressBar to do them in small parts not to trigger the Watchdog timeout. Since the current implementation of BrogressBar is leaking memory, each re-calculation of the output values increases the memory consumption by 3k. So to keep on developing with the emulator, I need to figure ways to free some memory.
Any "insider" tips on how to be memory-effective? I've already converted all the doubles I can to floats and draw all graphics "by hand" instead of using bitmaps.
Also, regarding the memory usage, is it better to use the layout system, or just draw everything in the code?