05-04-2011 08:19 PM - edited 05-04-2011 08:21 PM
So I found it weird that my app was running so slow... so I threw it on my server and tested in the browser for quick launching so as to show people and not have to jump through hoops (like waiting for debugger to time out from my last launch, or have a "release" version, etc).
Lo and behold.. It actually ran smoother IN the browser! Not awesome, but MUCh smoother... WTF!?
My app utilizes FLiNT particle engine, and if you want to test for yourself, check out: http://flintparticles.org/examples/firework
It has pure as3 code, which you can compile real quick and test on your playbook... I'm just guessing, but I'm thinking it's double the framerate in the browser.
Can someone validate that I'm not crazy? (well, crazy about this).
05-04-2011 11:56 PM
05-05-2011 05:11 AM
05-05-2011 09:51 AM - edited 05-05-2011 09:51 AM
Yeah I tried changing the renderMode, AIR must already be setting it on (default is auto, so it might just be working as such).
As for the sprite renderer, hmm... I might have to look into that... Are you basically generating the bitmap data, and passing it into the SpriteRenderer? Or does it have helper methods/functionality to avoid that work?
Regardless of the approach, it's running much faster in the browser for me rather than the Tablet OS
05-05-2011 10:17 AM
05-05-2011 11:43 AM
Ah, yeah, you're right.. But using my frame counter I didn't gain a single frame, even when using cacheAsBitmap and cacheAsBitmapMatrix
I'd like someone to actually TRY comparing the two... I simply used the AS3 source I posted in the OP and could visibly see a huge performance difference.
More info for others interested: