If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

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

Web and WebWorks Development

Reply
Developer
interfaSys
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

PlayBook and BB10 need better Javascript timers

Here is a quote from Sencha's semi-scientific study of timer performance running John Resig's timer test:

"Most mobile devices we tested had timers set at 10ms resolution. This was the case for the vast majority of Android devices, as well as devices running iOS3 and iOS4. Chrome for Android and iOS5 had faster timers: their timer resolution was 4ms. And the Blackberry Playbook 2 had the slowest timer: approximately 17ms"

 

And to make things even worse:

"We also found the Playbook 2 timer to be extremely noisy, regularly spiking to 2x the 18ms timer resolution"


 

I've just tested the BB10 device and it behaves mostly like the PlayBook, except for some "peaks" at 10ms.

 

Could this be improved please?

 

[Source]


 


--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Please use plain text.
Developer
interfaSys
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: PlayBook and BB10 need better Javascript timers

Just did a test with the latest BB10 OS and things look a bit better as the timer oscillates between 10ms and 30 ms now.

Still, it would be much better is it could be rock solid at 10ms or lower.

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Please use plain text.
Developer
interfaSys
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: PlayBook and BB10 need better Javascript timers

[ Edited ]

Just did a test with the November refresh and it's a disaster...There are some peaks at 50ms.

That's maybe why the browser is so non-responsive in this release?

 

Timers on November refresh

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Please use plain text.