Skip to main content
Participating Frequently
September 21, 2013
Question

GPU Mode crash when using 1024x1024px images on iPad Retina with cacheAsBitmapMatrix

  • September 21, 2013
  • 0 replies
  • 349 views

So I am building a menu for a mobile app and I have created a sliding menu with tiles, I have done this before, all works great normally.

This time, my tiles were really close to the power of 2 ( 1024x1024px ) so I decided to use that size and resize my tiles to that for performance gains.

So the setup is this:

GPU Mode active, 7 movieclips with 3 frames each, PNG images in those movieclips sized at 1024x1024px. So that's 21 png images.

I need to use the cacheAsBitmapMatrix feature for full smooth performance and when I do, it crashes on the Retina device when loading 1024x1024px images.

On non-retina devices I load the lower resolution assets ( 512x512px) and that works perfectly fine with the cacheAsBitmapMatrix on. On the iPad 1 it runs super smooth.

So I started playing around with the different render modes:

No crashing on CPU mode and no crashing on DIRECT mode, only on GPU setting.

The retina device is NOT out of memory, it does not do anything really heavy. It just loads in these movieclips in a sliding menu, and tweens their alpha, scaleX and scaleY ( which is not part of the issue as it crashes without this too ).

In summary:

1024x1024px images inside of movieclip containers crash an iPad Retina device when using cacheAsBitmapMatrix.

The fix I have found is to just lower the image size a tiny bit: from 1024px to 1016px, it resolves the crash and makes everything work perfect.

So, what do you guys think this could be? I tried with previous versions of AIR (3.7,3.8) and it happens on those versions too. I am using the latest beta of AIR 3.9.

This topic has been closed for replies.