I am using a global linked list to hold refs to 'Graphics' (my sprite class).
At the moment, to manage the large amount of sprites I'm using in my game, the only way I can seem to ensure references to them are garbage collected is to make a new linked list, add any Graphics not flagged as 'dead', null the old list, then finally point the global list to the new list.
There appears to be no memory leakage, and it runs perfectly smoothly, so should I just run with it? I seem to have problems with Listremove...
At the moment, to manage the large amount of sprites I'm using in my game, the only way I can seem to ensure references to them are garbage collected is to make a new linked list, add any Graphics not flagged as 'dead', null the old list, then finally point the global list to the new list.
There appears to be no memory leakage, and it runs perfectly smoothly, so should I just run with it? I seem to have problems with Listremove...