gwowen / gqe

Automatically exported from code.google.com/p/gqe
MIT License
0 stars 0 forks source link

Let the AssetManager automaticly clean up. #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
With the size of projects the number of loaded assets raises. It's already a 
bit an effort to write all the code for the loading process, but that's not all 
because at the end of a state all the loaded assets which won't be used any 
further have to be removed, again with an other line of code for each asset.
So since we got a manager wouldn't it be nice if he could remove the assets 
automaticly when called 'RemoveStateAssets()' or something like that?
Clearly it would affect the loading parameters, because you then would have to 
declair if the asset will be used only in this state or also in others.

Original issue reported on code.google.com by youtube@my-gate.net on 14 Feb 2011 at 1:58

GoogleCodeExporter commented 9 years ago
I agree with your ideas here.  I am working on a scheme to make this easier.  I 
still think you will need to write code to cleanup your pointers, but I can 
certainly make loading/unloading assets a single line call.

Original comment by RyanLind...@gmail.com on 19 Feb 2011 at 4:41

GoogleCodeExporter commented 9 years ago
This has finally been implemented with version 0.19.

Original comment by RyanLind...@gmail.com on 26 May 2012 at 8:48

GoogleCodeExporter commented 9 years ago

Original comment by RyanLind...@gmail.com on 26 May 2012 at 8:49