|
Post by u9 on Jun 25, 2006 11:06:37 GMT -5
It would be quite smart to be able to free different resources when done with them. When loading e.g. images afaik (as far as I know) you only get the image index as return value from the function call. Brutus has no way of knowing when the image is no longer needed because it's just a number.
Now with graphics you can call terminate, but this terminates everything. I'd like to e.g. be able to delete a level (and all it's resources) and then load the next level and it's resources.
So a function like graphics.clearImage <imageIndex> or something like that would be smart.
I have noticed that the music class has a Clearmidi <index> command, so any new commands should probably follow the same naming convention.
Note, right now I'm mostly thinking about graphics, it should be applicable to just about any thing that gets loaded at any time.
|
|
|
Post by Guilect on Jun 28, 2006 17:26:17 GMT -5
agreed. I will look into it.
|
|
|
Post by u9 on Oct 19, 2006 6:59:04 GMT -5
Could you implement a fx.clearfx or fx.clearimage also to free up the fx images? I dont know what naming you would want to use here.
|
|
|
Post by Guilect on Oct 19, 2006 8:16:42 GMT -5
Will do.
|
|
|
Post by u9 on Oct 19, 2006 8:53:19 GMT -5
Oh and graphics.clearfont ... now i don't think there are any more resources.
|
|