Managing resources

BlitzMax Forums/BlitzMax Beginners Area/Managing resources

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

In fact it is just an idea to see if it is worth or not.
The basic solution is to manage all the resources by hand (global image:timage=LoadImage() and then image=NULL), but if you have many resources (images, anim_images, sounds...) and you need to load/unload them at some point this is very costly (well I think so): logo image,title image, menu music, player image (this could be loaded once), particle image, level music, gfx level and so on...(these could change every level).
Moreover in the full code I added a log function to check if & when any resource is missing and so on...
GCCollect is only to force BMax to release resource (the OS behind I think...)
OK...back to the old system so.
Thanks again.