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

Adobe AIR Development

Reply
Contributor
owen_
Posts: 11
Registered: ‎10-28-2012
My Carrier: -

Terribly slow Playbook performance

I've been trying to port some simple Flash games over to the Playbook and I'm running into a massive performance issue that nothing seems to solve. My framerate never seem to go above 10fps even when it runs at a full 60fps in a browser or on the simulator.

 

I've been through every single 'optimizing for Playbook' article I could find, but nothing seems to even make a dent.

 

The only thing that works is removing any update or draw calls, so there is practically nothing running in my app. Even then it only get about 30fps and still fluctuates wildly.

 

Has anyone else experienced anything like this before? I'm hoping it's some flag I've set accidentally, or possibly a hardware issue...

Please use plain text.
Developer
steve_web
Posts: 291
Registered: ‎05-07-2009
My Carrier: Telus

Re: Terribly slow Playbook performance

I'm on my phone right now so I don't have the files handy but I do recall there is a setting in your config XML file to enable GPU rendering. It sounds like this might be disabled or unspecified in yours.

PlayBook Apps: DataMine, Dots + Boxes, 5 Marbles
BlackBerry SmartPhone Apps: 5 Marbles Soon: **** (D.Z.A), ****Quest, **** Challenge, VaultCracker, DevBrowser, Radial****
Please use plain text.
Contributor
owen_
Posts: 11
Registered: ‎10-28-2012
My Carrier: -

Re: Terribly slow Playbook performance

Yeah, I set <rendermode> to gpu but again that barely made a dent in performance. My app is entirely bitmap based so I was hoping it would give a larger boost, but no luck.

Please use plain text.
Developer
steve_web
Posts: 291
Registered: ‎05-07-2009
My Carrier: Telus

Re: Terribly slow Playbook performance

Ah yeah it's a tag called "renderMode" to be set with a value of "gpu".

<renderMode>gpu</renderMode>

In your projectname-app.xml file

PlayBook Apps: DataMine, Dots + Boxes, 5 Marbles
BlackBerry SmartPhone Apps: 5 Marbles Soon: **** (D.Z.A), ****Quest, **** Challenge, VaultCracker, DevBrowser, Radial****
Please use plain text.
Developer
UberschallSamsara
Posts: 689
Registered: ‎12-29-2010

Re: Terribly slow Playbook performance

Just curious - are the built-in apps running smoothly on your PlayBook when your app is running at slow fps?  I've noticed that built-in apps like the browser have sometimes been very unresponsive now that my PB is on 2.1.x.y, and I've also noticed that responsiveness is sometimes impaired after I've played (and closed) a big resource intensive game.  A device restart *seems* to *fix* these issues most if not all of the time.  Have you tested your fps on a fresh reboot of your PB?  

Please use plain text.
Contributor
owen_
Posts: 11
Registered: ‎10-28-2012
My Carrier: -

Re: Terribly slow Playbook performance

Everything else seems to run fine if I run it at the same time as my app.

 

Online flash games also run very slow for me, I figured that it was due to Flash running through the browser but now I'm wondering if Flash runs perfectly fine through the browser for other people. Things like YouTube are no issue, but anything more dynamic than that is very slow.

Please use plain text.
BlackBerry Development Advisor
dmalik
Posts: 361
Registered: ‎02-22-2012
My Carrier: Bell

Re: Terribly slow Playbook performance

Will you please provide a little bit more information on your game? Are you using a framework like Flixel or FlashPunk? What tweening engine are you using? Are you using blitting or spritemaps? Are you using filters?

 

Regards,

Dustin

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Please use plain text.
Contributor
owen_
Posts: 11
Registered: ‎10-28-2012
My Carrier: -

Re: Terribly slow Playbook performance

No framework is being used. The way I'm blitting is very similar to how it's done in Flashpunk, but without the double buffered renderer. For tweens I'm using the TweenLite engine. I am using displacement filters on my main buffer texture at certain points, but I have the same results even with the filter disabled.

Please use plain text.
BlackBerry Development Advisor
dmalik
Posts: 361
Registered: ‎02-22-2012
My Carrier: Bell

Re: Terribly slow Playbook performance

Hmm... Do you have a sample on a site or anything? I wouldn't mind seeing the complexity and trying it on the PlayBook browser.

 

Cheers,

Dustin

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Please use plain text.
Contributor
owen_
Posts: 11
Registered: ‎10-28-2012
My Carrier: -

Re: Terribly slow Playbook performance

You can take a look at a slightly older version here (http://www.hairygames.com/play-sbace.html).

 

Keep in mind the version I'm running now has been changed and runs significantly faster (on PC at least) at this point. I've tried running versions on the Playbook with no overlays, filters, sound/music... but it's still running at over 600ms per frame.

Please use plain text.