Just don't load everything in one function call so that you can optimize FPS and Memory. Some debug information like FREEMEM function can also help you so that you can have a general idea of how much resource your program is using.