Skip to main content
LucasOrdonez
Participating Frequently
September 8, 2014
Question

Flash App run SLOW! Help!

  • September 8, 2014
  • 3 replies
  • 1591 views

Hi everyone! I´ve made a test of an intro for an app in Flash CC 2014. Air for Android. It´s about 100 frames. Only the intro. This intro is about some banners that have a little blury effects and motion. When I preview it on my Notebook, runs perfect. But when I publish it for device and test it on my Samsung Galaxy Tab 2 runs VERY SLOW. What can I do?! Does anybody have an advice for me? I´m new at this. I´ll apreciate your tips. Maybe I´m doing things in flash that can´t run properly in android devices. I also must say that I´m working with symbols (about 15) that are brought from Photoshop in .PNG. But low resolution. I´m not working with Flash generated images or Vectors from Illustrator. Well, think thats it. Thanks!

This topic has been closed for replies.

3 replies

LucasOrdonez
Participating Frequently
September 11, 2014

Guys I changed the render mode to GPU. It runs better. But some filter are disabled. Anyway, I´ll try to import prerendered images as Anton says.

I´ve also exported the movie. So I can then make an H264 file. But when I try to import the .mov to Media Encoder, it says an error about "the source file does not have importable flows" or something like that. So I made an .avi with Premiere, then I imported it in media encoder, and then I exported an H264 file from there. But it wasn´t in good quality. Anyway, it´s not a movie. This "animation" it´s about 2 seconds of banners that appear in stage. Nothing strange. I think that with GPU render I would be good. Thanks a lot yo you guys! I´ve learned a lot. If you need an illustrator, well, let me know if I can help with something!

Colin Holgate
Inspiring
September 8, 2014

You have to think about what is going on in the device. The two most likely options are:

You've set CPU or Direct as the render mode, and all of the pixels you're changing have to be sent over to the device GPU, perhaps 60 times per second. If that's your situation, at least use Direct rather than CPU. But it is still unlikely to be smooth.

You've set GPU render mode, and so every frame is like a complete change of GPU textures, which again have to be sent over to the device GPU. It's likely to run slowly, and will lead to crashes too.

Either change how you are working to make there be a lot less different graphics, or carry on with what you are doing, only export the sequence from Flash as H.264 video. You can then play that back smoothly as StageVideo.

You don't need Starling. Using it would force you to solve the issue by reducing the graphics to a set of sprite sheets, but if you just reduce the number of graphics in other ways, and use render mode of GPU, the performance will become good.

LucasOrdonez
Participating Frequently
September 8, 2014

Thanks a lot! I´ll try this and then I tell you! Thanks!

User Unknow
Legend
September 8, 2014

1) Vector rendering on mobile pretty slow because mobile CPU really slow in Math calculating. This is not the AIR issue but your device. Desktop have faster and powerfull CPU's so you don't see any issues there

2) Displaying all effects like blur, shadows and etc - also computed in runtime using CPU. Use instead prereneder images for those effects so you will reduce CPU overheating

3) I don't know how you can translate this correctly but try to understand my article Рекомендации по Adobe Air для Mobile | Блог им. TheRabbit about this

4) I can suggest to use Starling. But you must be not newbie developer

LucasOrdonez
Participating Frequently
September 8, 2014

Anton, I´ve read your article, it´s just great. I got many tips from there. I´ll try some of them too and then I tell you. Thanks a lot!