Skip to main content
Inspiring
April 3, 2012
Question

RenderMode (gpu) or (direct) - Can someone explain ?

  • April 3, 2012
  • 2 replies
  • 9936 views

When in GPU mode .. I am seeing pretty good performance. There is a couple hiccups on the iPad3 using tweenMAX on large PNG's.    When I set renderMode to Direct ... performance takes a huge hit and looks like it's running at 10fps or something.

I keep reading about starling and using direct rendermode for awesome performance.  Is there something I need to do to achieve this ?   I am building with AIR 3.2 .. I'm building on the command line with the iOS5.1 SDK.      What else do I need to do to take advantage of getting greater performance ?

This topic has been closed for replies.

2 replies

Inspiring
April 4, 2012

You could also try something like this: http://www.greensock.com/blitmask/

No idea if it works for you, but is sounds awesome...

Anyone had any experience with blitmask and air?

April 4, 2012

I've had great results with TweenLite so I assume other greensock things will work well with AIR.

Colin Holgate
Inspiring
April 3, 2012

If you're using Starling, or StageVideo, or Stage3D itself, you need Direct for it all to work correctly. If you're doing things that are less suited to GPU, such as character animations where every frame looks different, you may well get better performance with CPU than GPU.

What Direct does for those kinds of things is to transfer the changed area of the stage straight into the GPU. You will get much better performance than CPU, but depending on how much of the screen has changed you may or may not get better performance than GPU.

So, if too much is changing you may well get better performance with GPU.

Applauz78Author
Inspiring
April 3, 2012

Thanks Colin.

So what would you suggest for an application that is a lot of tweenMAX usage.  adding movieclips to the stage..   more of an informational app.. with menu's etc ?

Colin Holgate
Inspiring
April 3, 2012

Some of the usual tricks, like cacheasbitmap = true, might improve the CPU performance enough to compensate for the overhead of using Direct to copy so much to the GPU.