Skip to main content
Inspiring
June 15, 2011
Question

A little probleme with Air 2.7 in GPU?

  • June 15, 2011
  • 14 replies
  • 13244 views

Hi!

Like everyone here, I saw that Air 2.7 is now out, very exciting stuff!

So to test that, I just take an old .fla (a game) who work very well with Air 2.6. I copy-past the .swf / . xml / .provision / .p12, and when I export...

It's like the game is in high resolution (the image is in 960x480). So I thought maybe I have something wrong in my file, maybe in the .xml I forgot the "high" instead of "standard"... I check everything, nothing wrong... I try to change the display mode in CPU and surprise, it's working! Fullscreen mode / Standard display it's cool. I change for GPU mode and again, the screen is in high resolution and reduce by half my app!

Does anyone else have this weird bug? Or maybe in GPU it's in High Resoution by default?
CPU mode is cool by the way, but I NEED GPU (my game is built around that for better performance).

Thanks!

This topic has been closed for replies.

14 replies

Participant
June 16, 2011

I am really disappointed that this slipped through the cracks. The GPU rendering + fullScreen + landscape mode combo is widely used by many apps, especially games. 3/4 of my apps are affected by this, as they rely 100% on the fast GPU rendering of bitmaps.

Colin Holgate
Inspiring
June 16, 2011

An existing work around to the strange landscape size issue was to have the app set to portrait, and then change it to landscape once the app is running. That work around continues to work.

There are many other changes though, so if you are going from an AIR2.0 app to update it to AIR2.7, there are more serious changes you'll need to make. Such as vectors not being antialiased, and filters being lost. So, it may just be a lot easier to use CPU instead, things look nice there, and the performance can be better than it was with GPU an AIR2.6.

Participant
June 16, 2011

CPU performance is better, however from what I have seen it doesn't come close to GPU performance under 2.6 - I guess it depends on a lot of factors though. Has the GPU performance been increased on 2.7?

Thanks for the tip about the workaround.

Participant
June 16, 2011

Yeah this happens to me as well running gpu and fullscreen.

I cannot believe Adobe would mess up like this, this means that basically that we can't use 2.7 as we need fullscreen games. This has been working since packager for iphone and is now broken.

Back to 2.6 I guess.

Inspiring
June 15, 2011

Okay... I just finish a test and it's that.

--------------------------------------------------

Test 1

<renderMode>gpu</renderMode>

<fullScreen>true</fullScreen>

= not working as I expected

--------------------------------------------------

Test 2

<renderMode>cpu</renderMode>

<fullScreen>true</fullScreen>

= working well

--------------------------------------------------

Test 3

<renderMode>gpu</renderMode>

<fullScreen>false</fullScreen>

= working well

--------------------------------------------------

For my app I need to be in GPU mode / Fullscreen. I don't want the iPhone top bar on the screen. I think a will stay on Air 2.6 for the moment. Not a big problem! I just wanted to test and share here because I think it will be soon a recurring problem on this forum!
Thanks Sanika and Josholm!
Inspiring
June 15, 2011

Hi Sanika,

in my opinion there are still several issues with the orientation/fullscreen modes.

I think that AIR just hasn't been testing in landscape mode a lot and also not the autoorientation feature, which takes a lot of effort to adjust it so is just working (but still far away of being compareable to a native app). I really like the AIR idea, but it is really a little annoying that certain basic things are still missing in these builds – and now fullscreen/GPU is just not possible to use...

But hey, thanks for being here and helping out!

Josh

Inspiring
June 15, 2011

Well, I had this too.

From my point of view (right now) it might not be a little bug, since I guess it is what they mean on http://kb2.adobe.com/cps/906/cpsid_90612.html by saying:

AIR on iOS

stage.orientation property incorrectly returned when started on landscape. (2852193)

So this is a known bug and it hasn't been fixed.

Participating Frequently
June 15, 2011

Hi,

This issue is known to us and it happens only in when is set to true in application.xml. I would suggest you to set fullScreen to false or use CPU mode.

-Sanika