Skip to main content
Participant
July 6, 2011
Question

Asus Transformer cacheAsBitmap GPU rendermode not working

  • July 6, 2011
  • 1 reply
  • 764 views

Hi,

I've been doing some performance testing and luckily I have an Asus Transformer to do so. Unfortunately there seems to be a problem with that device. It occurs when I use cacheAsBitmap in GPU renderMode. It's hard to describe but the graphics are all screwed up, for more details I've attached a screenshot.

Here is a screenshot with cacheAsBitmap = false

Using CABM looks just fine on the Nexus One, iPad and iPod Touch.

You can test this for yourself with the app from this site http://labs.byhook.com/2011/01/13/digital-sheep-air-for-android-drawing-performance/ and using GPU version and Sprites.

I alse filed a bug which can be found here https://bugbase.adobe.com/index.cfm?event=bug&id=2913545.

Is anyone else having the same issue? Am I just missing something?

I think ths could be related to this http://forums.adobe.com/message/3768578#3768578

This topic has been closed for replies.

1 reply

Participant
July 6, 2011

are you using cacheAsBitmapMatrix or just cacheAsBitmap?

taymlessAuthor
Participant
July 6, 2011

Should have thought about mentioning that ...

the problem occurs, when I use cacheAsBitmap (CAB), with or without cacheAsBitmapMatrix (CABM).

If I only use CABM there are no problems. Here is the code, in case you want to test it I've attached the project to the bug I've filed https://bugbase.adobe.com/index.cfm?event=bug&id=2913545

package

{

import flash.display.Bitmap;

import flash.display.DisplayObject;

import flash.display.Loader;

import flash.display.Sprite;

import flash.events.Event;

import flash.geom.Matrix;

import flash.net.URLRequest;

[SWF(width="1024", height="768", frameRate="31", backgroundColor="#000000")]

public class IPadResolutionTest extends Sprite

{

private var loader:Loader;

public function IPadResolutionTest()

{

var req:URLRequest = new URLRequest("bolf01_rand.png");

loader = new Loader();

loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);

loader.load(req);

}

protected function onLoadComplete(event:Event):void

{

var container:DisplayObject = loader.content;

container.cacheAsBitmap = true;

container.cacheAsBitmapMatrix = new Matrix();

addChild(container);

}

}

}