03-19-2011 09:55 PM
I'm having a bit of an issue with the simulator and was hoping one of you knows how to make things better, if at all possible.
My problem is when using the ENTER_FRAME or TIMER events for animation. Animation on the simulator is very slow/choppy/inconsistent. I'm assuming this is related to VMWare and not the Simulator OS.
Has anyone run into this issue? If so, were you able to resolve it? If not, any other suggestions?
Solved! Go to Solution.
03-19-2011 10:04 PM
For me the sim runs a bit slower but nothing bad enough that I can't test. I assume it will run fine on the actual device, as it runs fine on my desktop. It sounds like you are having a worse time with it.
What frame rate are you running at?
03-19-2011 10:51 PM
After testing it on two different systems, one of them being an overclocked i7, I noticed the swf using up %100 of the cpu. ALL CORES!!! All it is is rotating a sprite with a few movie clips on its displayList. now I'm stuck as this is an integral part of my app. Any ideas?
03-19-2011 11:45 PM
I gave you kudos because you mentioned your desktop and that prompted me to test it on mine. I believe the issue is trying to rotate items with filters applied to them. I'm exporting the movieclips from flash as SWC files. After revising the assets and removing several filters, CPU usage came down to 50%. It's still a very high usage for a simple app so I might just remove them altogether.
03-20-2011 12:09 AM - edited 03-20-2011 12:10 AM
I'm also running at 30 fps.
Filters are bad for performance. Try to minimze their usage as best as you can. Often you can achieve the same effect by creating the effect you want in an external image editor (e.g. Photoshop) and then importing the image.
Rotating with a filter is probably even worse because using filters sets cacheAsBitmap to true. Rotating (or scaling) objects with cacheAsBitmap uses up more CPU. So you have the first performance loss simply using filters and then you take another hit when rotating on top of that. If you're doing a lot of this that can be pretty bad.
However, that still may not be the entire source of all your performance issues. Try removing them entirely and see if everything clears up and you'll know if they are the sole issue or not.
03-20-2011 12:22 AM
Yep. That did it. I removed all filters but a drop shadow and it's running smooth. It look much cleaner as the filters were also a bit distorted when rotated. I'll follow the link you posted tomorrow morning.
03-20-2011 05:34 AM
I have the same issue in the simulator, but I have no filters. I have 4 buttons that are tweened into the scene with the Caurina tweener. They were fine but now that I tweened their 3D rotation so that when they come in they rotate a little, it lags in the simulator. On my PC it runs with ease (AMD Athlon II x4 630). I assume this is just because of the simulator? There's nothing really complex going on, just using the basic 3D engine built into Flash. For normal QNX icon buttons.
03-20-2011 07:42 AM
I no longer make many assumptions about what's the fault of the simulator and what's not, and especially not about whether anything the simulator does is representative of the real hardware.
That said, we know the simulator doesn't have full OpenGL acceleration working, so presumably some cases of graphics performance issues are attributable to that and should be better on real hardware.