Skip to main content
Inspiring
July 3, 2011
Answered

stage size on iPad 2 running rendermode = gpu

  • July 3, 2011
  • 2 replies
  • 3511 views

Hi all,

I'm testing with performance on iOS and have problems testing the GPU rendermode.

In the descriptor file I can set rendermode to auto or CPU without problems, but when I use GPU, the application shifts up and left and scales downs a bit. So, part of the top and left are outside the screen and below and to the right of the app there's quite some empty space.

I'm using Flash builder 4.5, SDK 4.5.1 (so AIR 2.7 as well or not?)

Tha app is very basic: 15 bitmaps drawn based on a Box2D world with circleShapes and accelerometer as gravity and works fine in all rendermodes. Just the stage's size and position acts up while in gpu rendermode.

Anyone got any ideas?

Thanks in advance,

Manno

This topic has been closed for replies.
Correct answer Colin Holgate

It's a known issue, and the workarounds are to not be full screen, use CPU, or use AIR 2.6.

2 replies

Colin Holgate
Colin HolgateCorrect answer
Inspiring
July 3, 2011

It's a known issue, and the workarounds are to not be full screen, use CPU, or use AIR 2.6.

Inspiring
July 3, 2011

Hi Colin,

Thanks for the fast reply.

I guess I checked fullscreen when creating the project, however, when setting fullScreen to false (and uncommenting the still commented node?!) in de descriptor file I get the following compile error:

Error occurred while packaging the application:

/private/var/folders/gv/gv-j1H1UFJ4olvFpGwVTVk+++TI/-Tmp-/AOT1309729499262/Box2DiPad-app.xml(109): error 103: application.initialWindow.fullScreen is an unexpected element/attribute

User error somewhat or bug?


... Rats! In case anyone messes up like me: The fullscreen node gets rewritten all the way at the bottom of the initialWindow section. So it needs to be changed there....


Is there anyone who can shed some light on AIR 2.7 update progress?

Thanks,

Manno

Participating Frequently
July 4, 2011

Hi,

The stage offset issue on fullscreen + landscape + gpu mode has been fixed in the latest release. Please download the sdk from http://www.adobe.com/products/air/sdk/.

Please let us know how it goes.

Thanks.

Sanika

Inspiring
July 3, 2011

Small update (hadn't noticed before)

The objects on stage can be picked up and thrown about. In GPU mode (so stage acting up) the objects are responding as if the were at the correct position. So when you try and pick one up, you don't pick the one under the finger, but offset somewhat (probably equal to scale and position of the stage)

Thanks,

Manno