BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-04-2010, 02:36 AM   #1 (permalink)
New Member
 
TungstenX's Avatar
 
Join Date: Nov 2009
Model: 9000
PIN: N/A
Carrier: Vodacom
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question 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  
Old 11-04-2010, 07:38 AM   #2 (permalink)
New Member
 
TungstenX's Avatar
 
Join Date: Nov 2009
Model: 9000
PIN: N/A
Carrier: Vodacom
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Answering my own question, again:
Offline  
Old 11-04-2010, 07:40 AM   #3 (permalink)
New Member
 
TungstenX's Avatar
 
Join Date: Nov 2009
Model: 9000
PIN: N/A
Carrier: Vodacom
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

http://developers.sun.com/mobility/m...sen/Chap10.pdf
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.