Quantcast
Channel: Adobe Community : All Content - AIR Development
Viewing all articles
Browse latest Browse all 2954

Air 3.7: Big stuttering on GPU Retina mode after being idle

$
0
0

Hi,

 

I'm using GPU mode to display smooth scrolling texts vertically. I'm first rendering the text to several bitmaps, that I put in a Sprite container. Then I move the container. The results are very smooth, and work fine.

 

But due to the upcoming constraint of publishing all new Apple apps with Retina support (from 1st of May), I began to test it by adding the following tag to my XML:

<requestedDisplayResolution>high</requestedDisplayResolution>

 

Actually it was very straightforward, as all my assets are already in retina resolution (640x960). The scrolling was still smooth, so I was quite happy. Until I found a very annoying bug: if I leave the app idle, and my iPod 4G goes to sleep, when I wake it up, the app becomes VERY jerky. Even if I go to various sections of the app, calling for System.gc(), I can never get a smooth response again. I have to quit the app and launch it again. I rebooted my iPod, but the issue still occurs.

 

If I don't activate the <requestedDisplayResolution> tag in my XML, this problem is not there (a few hiccups, but nothing compared to the lag I get with Retina resolution). What's strange is that memory-wise, it is exactly the same, since in non-retina mode, I still use Retina assets that are scaled-down by Air automatically. So maybe there is a fill-rate issue, but that only happens after waking up from idle mode, so I know the device can handle it. FYI, I set StageQuality to LOW.

 

I even tried to keep the app awake using the systemIdleMode feature, but I keep getting inconsistent crashes when I press the Home button, then coming back to the app.

 

Did someone already encounter this issue? It could be a real showstopper for all GPU mode users once Retina support becomes mandatory.

 

Thank you very much for your help!

 

Frédéric


Viewing all articles
Browse latest Browse all 2954

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>