Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
dev2011
Posts: 17
Registered: ‎08-14-2009

Graphics Performance

Hello fellow developers,

 

for a game I am currently working on I use net.rim.device.api.ui.Graphics to draw the game's graphics.

 

I really have to fight for steady framerates and performance at times, which makes me wonder if theres any performance difference in using net.rim.device.api.ui.Graphics and javax.microedition.lcdui.Graphics?

 

The reason I wonder I've seen games with lost of explosions / things going on and don't know they maintain a steady framerate. Maybe someone has some interesting tipps on this issue.

 

Thanks! :smileyhappy:

 

 


 

Please use plain text.
Developer
bikas
Posts: 984
Registered: ‎02-10-2009

Re: Graphics Performance

I would prefer using  net.rim.device.api.ui.Graphics because this is RIM specific api.

It should give better performance than lcdui Graphics.

 

Regards

Bikas

Please use plain text.
Developer
RLord321
Posts: 343
Registered: ‎02-23-2009

Re: Graphics Performance

I've used both of these classes in the past and with my experience, they are the very similar.  Of course the frame rate depends on what you are drawing on the screen.

 

The only downside of using the javax.microedition.lcdui.Graphics is that you cannot use all of the specific RIM API's.  I'd stick with the net.rim.device.api.ui.Graphics.

Please use plain text.