Apparently, in Flash 10, you can use the GPU to calculate shaders, and if the user doesn't have a compatible gpu, it falls back to the cpu. The problem is that the cpu is very slow to calculate the filters, it would be nice to detect if it can't use the gpu, and use fewer effects. Is it possible to detect using actionscript if it's using gpu rendering?
On your device, go to Settings and tap Developer Options. In the Monitoring section, select Profile GPU Rendering or Profile HWUI rendering, depending on the version of Android running on the device. In the Profile GPU Rendering dialog, choose On screen as bars to overlay the graphs on the screen of your device.
Go back to Settings, scroll down and you should be able to see a new option called Developer options. Tap on it. Scroll down to the Hardware accelerated rendering and enable the toggle next to Force GPU rendering.
For Adobe Premiere Pro, go to File > Project Settings > General > Video Rendering and Playback, set the Renderer to Mercury Playback Engine GPU Acceleration (OpenCL/CUDA/Metal).
An important new feature of Flash Player 10.1 is that it can use the GPU to render graphical content on mobile devices. In the past, graphics were rendered through the CPU only. Using the GPU optimizes the rendering of filters, bitmaps, video, and text.
Why not measure the time it takes to do something, and if it took too long, you disable some effects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With