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.

inside custom component

Adobe AIR Development

Reply
Highlighted
Developer
Posts: 327
Registered: ‎12-13-2010
My Device: Bold 9900/Z10 Special Edition
My Carrier: Rogers
Accepted Solution

Coding for multi-core optimization

Hey, so since the Playbook is dual core, is there any way to optimize our code to utilize the dual-cores?

Or does the system use one and apps use another?
Or does AIR do this behind the scenes for us already?

Food for thought.
CEO/Lead Developer - Tensioncore™ Design Studios
http://tncr.ws/ - ShortenThis!™ for Blackberry Playbook | ShortenThis!™ for BlackBerry® 10
The Periodical Toe A highly informative Table of Elements
DrawThis! A fun drawing app for the BlackBerry® PlayBook™!
http://www.tensioncore.com/ - Tensioncore™ Web Hosting
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Coding for multi-core optimization

You won't be able to do much about this with AIR, with possibly one exception.

 

AIR is single-threaded, basically, so you can't push any of the work into a background thread or process that runs on a second core, at least not directly.

 

The Pixel Bender stuff may automatically use a second core if present... not sure.  Of limited use to many but if it does that it would be great for some.

 

The system (QNX) makes full use of both cores, not merely running apps on one of them.  It's unlikely anything a developer could do would improve on just letting the system do what it's designed to do here.

 

With the native SDK, and presumably Java (anyone confirm?), you would be able to leverage both cores for your own purposes.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Developer
Posts: 327
Registered: ‎12-13-2010
My Device: Bold 9900/Z10 Special Edition
My Carrier: Rogers

Re: Coding for multi-core optimization

Thanks for the information, I didn't think AIR could do this, however it will be interesting in the future when we can get hands on with a Native SDK! The power will be great!
CEO/Lead Developer - Tensioncore™ Design Studios
http://tncr.ws/ - ShortenThis!™ for Blackberry Playbook | ShortenThis!™ for BlackBerry® 10
The Periodical Toe A highly informative Table of Elements
DrawThis! A fun drawing app for the BlackBerry® PlayBook™!
http://www.tensioncore.com/ - Tensioncore™ Web Hosting