11-04-2010, 01:36 AM
|
#1 (permalink)
|
| New Member
Join Date: Nov 2009 Model: 9000 PIN: N/A Carrier: Vodacom
Posts: 12
Post Thanks: 0 Thanked 0 Times in 0 Posts
| GameCanvas and GC Please Login to Remove! Hi all,
I've got a problem with the garbage collector firing off every few seconds (+- 10 seconds) - thus every 10 seconds or so the hour glass flash on the screen. I know there can be a lot of reason for this, but if someone can give me pointers, I'd appreciated it a lot?
What I've done to save memory and memory issues:
1. All the images of the game are loaded in a static array
(Question on this, if I assign a local var to one of the images in the static array, will it still use one memory spot?)
2. Trying to reduce the creation of new objects, e.g. there are 50 particles pre-created and they just get switch on and off - rather than created and destroyed.
Any inputs are welcome.
Best regards,
TX |
| Offline
| |