Air 2.6 in GPU-mode: Filters possible?

Hi,
I am converting my app from air 2.5 to air 2.6 and noticed that it doesn't render filters anymore when using GPU-mode. It renders filters in CPU-mode, but rendering is much slower than GPU.
Does anyone know if it's possible to use filers (a glow-filter in my case) in GPU-mode in Air 2.6?
Thanx!

Just had the issues.. in GPU mode any CPU intense rendering (like applyFilter does) slows down the app heavily. Like it dropped from 35fps to 5fps here. Let us know if you've got the same result or if I was wrong

Similar Messages

  • Adobe AIR for Android - GPU Mode - Bitmap Auto-Smoothing Issue

    Hi everyone
    I'm having a bit of an issue with the AS3 bitmap object. I'm currently developing an 8-bit style pixel game for AIR for Android.
    This game is being developed at a very low resolution and is being scaled up to maintain the charm of an old retro game.
    One of the methods I'm using is drawing pixels directly to bitmap objects and scaling the object up to create the old look.
    When testing on a mobile device, this works beautifully when you set the rendering method to Direct but when you change
    the render method to GPU the visuals go all blurry and anti-aliased (it's as if the bitmap is being smoothed out). The mini map
    for example is rendered using the setPixel method and then scaled up 9 times. Looks great on my PC but once I export it to my phone
    it looks absolutely awful! This is no good as I want to keep the clean, solid pixel look to maintain the the old 8-bit feel and obviously
    I'd like to stick to GPU mode due to it's speed.
    Like I said, this only happens once you test on a mobile device in GPU mode - it doesn't do it on my main desktop machine or
    in Direct mode. I already have the stage quality set to low and I've tried setting the bitmap's smoothing property to false but
    it does nothing.
    Does anyone have any suggestions as to how I can get around this?

    How about first blit your image to a small bitmapData, then draw it on a large bitmapData (9X larger)?
    Like,
    var small_bmd:BitmapData = new BitmapData(SMALL_WIDTH, SMALL_HEIGHT, false);
    var large_bmd:BitmapData = new BitmapData(SMALL_WIDTH * 9, SMALL_HEIGHT * 9, false);
    var bm:Bitmap = new Bitmap(large_bmd, PixelSnapping.NEVER, false);
    var blitRect:Rectangle = new Rectangle(0, 0, 9, 9);
    var i:uint, j:uint, blitColor:uint;
    small_bmd.draw(SOURCE_IMAGE);
    large_bmd.lock();
    for(j = 0; j < SMALL_HEIGHT; j++){
         for(i = 0; i < SMALL_WIDTH; i++){
              blitColor = small_bmd.getPixel(i, j);
              blitRect.x = i * 9;
              blitRect.y = j * 9;
              large_bmd.fillRect(blitRect, blitColor);
    large_bmd.unlock();
    Not sure if the code works or not, but hopefully this helps.

  • Kindle Fire & Adobe Air issues with scaling & bottom menu - GPU Mode only

    Hi,
    Long post ahead, please buckle down for a while.
    I'm having issues with the Kindle Fire and the bottom 20 pixel menu in GPU mode, CPU mode behaves correctly. The project was created with flash cs5.5, the stage size is 1024x600 and I've set the NO_SCALE flag. When the app is run on the Kindle Fire the Kindle scales it to 1024x580 for the bottom 20 pixel menu. If I create the project as 1024x580 it still scales it down and then centers it vertically introducing a 10pixel black bar at the top and I would assume a 10 pixel black bar at the bottom under their menu. In CPU mode the app is not scaled and the bottom 20 pixels is obscured.
    The problems I have encountered so far are incorrect mouse locations as reported in various mouse events. Messed up scrollRects when I try and clip something for display. Not being able to press buttons because of the incorrect mouse coordinates, the further down on the screen the more incorrect the buttons are. You can click below a button near the bottom of the screen and have it activate whereas a button at the top acts perfectly. This is due to the accumulated error value from the yPos * scaleValue.
    The mouse positions are off exactly by a scale factor of 600 / 580 (1.034).
    The video below shows the problems, sorry for the poor video handling. The red line in the video is drawn in the center of the y position detected on a mouse move and mouse down event, but shifted to the left for visibility. The center of that stylus is where it should be at all times, as you can see it isn't. You can also see displayed the buttons not working correctly, they are clearly being activated when the press on the screen is not over the button (indicated by the red line).
    The circle in the middle of the screen has it's scrollRect set to to the width and height of the circle, as you can see it is clipped.
    At the end of the video I press the power button then press it again to unlock, you can see the screen looks good for a split second then gets resized. Once resized the circle becomes clipped again. If I were fast enough I would assume the buttons would work correctly as well. Watch closely, it happens fast.
    Oh, and the app works fine on the desktop in either GPU or CPU mode. The app also works fine in GPU and CPU mode on my iPad2, Google HTC Nexus One, Nook Color and my 4th gen iPod Touch.
    Now whos issue is this? Adobes, Amazons or mine? I know what the problem is but don't know how to fix it.
    Youtube video link:
    http://youtu.be/660O3YMK9k8
    Thanks for your time!
    PS: if anyone wants the .fla for testing themselves, just ask and I will post a link to it.

    I'm going to forward this along to our android team for their review.  In the meantime, could you open a bug on this over at bugbase.adobe.com?  Please post back with the URL so that others affected can visit the bug and cast their votes.
    Thanks,
    Chris

  • Is there a way to use a single bitmapdata for multiple images with GPU mode?

    With GPU mode is there a way to bring in a single 1024 X 1024 png containing all my sprites and then slice it up into multiple display objects all refering to the original BitmapData?
    I have an app that runs in GPU mode - but I want to optimize the image management.
    I am making three sets of images in the orders of 2048, 1024 and 512 px.
    The app is a book app and each page has around 4 to 5 bitmaps. I would like to bring in one single image and slice it up - but just refer to the original bitMapData in the memory.
    Is there a way to do this - e.g. using a masking technique?
    I think it is possible using textures in direct mode - but that is not an ideal solution for me - as the app is already in the appstore - and I would have to entirely refactor it for stage3D. Also I use very large bitmaps which have some masking animations applied to them dynamically: http://youtu.be/Nm0T1jLCTz8?t=42s
    Currently, I use jpgs and a jpeg mask file for each image which I composite to get the alpha - then I scale them.
    PNGs may be better for GPU - (no compositing) but they make for a huge app file.
    Now I am converting it to use diffent sized assets depending on the device, then scaling them if need, and then compositing them for apha.  What I was hoping was to find a technique that could reduce the number of bitmapdata objects used and reduce the operations in general. 
    Any thoughts on optimizing would be appreciated.  I can add my code here if it helps.

    Tell Apple:
    http://www.apple.com/feedback/iphone.html
    We're all users here, just like you.

  • Disable auto smoothing on Android (GPU mode)

    I am making an 8 bit style game for android, where the canvas (Bitmap) is half the size of the screen and is scaled x2.
    when using gpu mode, the canvas is automatically smoothed, even if I set smoothing to false
    but when using cpu mode it is not smoothed.
    so is there a way to disable smoothing on gpu mode?
    thanks

    This question has not been answered...
    I'm rather disappointed that we don't have the control to turn this off for a number of reasons:
    GPU mode is faster for sprite based games
    Turning this off "may" improve performance which is already really good
    For game designs like 8bit retro, it completely ruins the graphics when they are scaled up
    Can we please get control in Air 2.7 SDK?

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

    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.

    I have not had that happen to me, so I can only speculate, but here are some questions that might help us narrow down the problem.
    1. Were the slides created on your ipad, or did you create the presentation on your mac/pc & then import it onto the ipad for presenting?
    2. You said When not using Keynote projected images are sharp." Does that mean that the same images used in the presentation display fine on the same projector when you open them in Phoots or another app?
    3. Is it only the images on the slide that are compressed, or does it impact text as well?
    If you run the presentation on your ipad, not connected to any outside screens, dothe pictures show up normally, or are they compressed then as well?
    Like I said, I havent' had this happen to me. My first guess (without knowing any of the details) is that maybe the presentation was created on another device & it was not set to display as 1024 x 768, but at some other aspect ratio, and since that it what the iPad displays at, it is compressing the slides to fit.

  • IOS 6: problem with sprites rotation in gpu mode

    Hi,
    I have a game published on iTunes and today I found a serious problem with the latest iOS 6 GM.
    Sprite rotation around X and Y axes doesn't work with gpu render mode.
    Here is my code:
    <mx:UIComponent id="gameCanvas" mouseChildren="false" mouseEnabled="false" width="100%" height="100%" />
    var gridSprite:Sprite=new Sprite();
    gameCanvas.addChildAt(gridSprite,0);
    // then I draw stuff on this gridSprite
    It works fine if this sprite is not rotated.
    But when I change its rotationX or rotationY properties, the sprite disappears from the screen!
    My game works fine on older versions of iOS (5.0, 5.1.1 and 6 beta 3).
    This problem only happens on iOS 6 GM and since iOS 6 will be officially released in a few days, I am really worried...
    I tried Air 3.3 and Air 3.4 - both have this problem.
    In "cpu" and "direct" render modes sprite rotation works, but graphics performance is terrible. So "gpu" is my only option...
    I'll really appreciate any help.

    I performed some other tests and so it seems like everything is 2D in gpu mode. When I try to do 3D transformations, objects disappear from the view.
    For example out of these 3 images only image1 is displayed:
    <s:BitmapImage id="image1"  source="logo.png" height="25%" width="100%" />
    <s:BitmapImage id="image2"  source="logo.png" height="25%" width="100%"  rotationY="5"/>
    <s:BitmapImage id="image3"  source="logo.png" height="25%" width="100%"  z="5"/>
    Maybe there is some setting that enables 3D (something like zBufferEnabled=true) that needs to be explicitly set for iOS 6 in gpu mode?
    UPD: Ok, I'm pretty sure it's a bug, I reported it to Adobe - Bug 3330901

  • Visuals appear blurred under GPU mode.

    Hi folks,
    How to avoid the blurry effect when render in GPU mode? I attempt to set quality to "LOW" but still get the same "filtered" look. To the contrary, in CPU mode things appear far clearer and sharper, bitmaps tend to be pixelated, but this is just what I wanted.
    Any help is appreciated!

    I guess that stage.quality = "low" ought to do that, but I tried, and it didn't help.
    About blitting, I just did a test. Using the code below I timed how long it takes to copypixels a 512x512 square a thousand times. I had the frame rate set to 100 fps, to make the arithmetic easier. On a test movie for Android it took about 10.7 seconds (10 would be perfect). On Android set to CPU it was about 20 seconds, and set to GPU it was 30 seconds. That makes the frame rate be about 50 fps for CPU and 33 fps for GPU.
    Those tests were on a high end dual core Honeycomb tablet, and I used Advanced Task Manager to force quit all apps before running the test to give it the best chance. I also tried the test on my iPad 2, and the results weren't quite what I expected. For the iPad, the CPU time was about 19 seconds, and GPU was 17 seconds. That's about 52 fps and 59 fps, so both better than on the Android, but strangely the GPU mode worked slightly better.
    So, imperfections in my theory aside, blitting with GPU is about 50% slower than CPU on Android, and only slightly quicker on iOS.
    Here's my test code ("tf" is a text field already on the stage):
    import flash.display.BitmapData;
    import flash.display.Bitmap;
    var bmd0:BitmapData = new BitmapData(512,512,false,0x000000);
    var bmd1:BitmapData = new BitmapData(512,512,false,0xff0000);
    var bmd2:BitmapData = new BitmapData(512,512,false,0xffff00);
    var bnum:int = 1;
    var p:Point = new Point(0,0);
    var r:Rectangle = new Rectangle(0,0,512,512);
    var c:int = 0;
    var b:Bitmap = new Bitmap(bmd0);
    addChild(b);
    var t:int = getTimer();
    addEventListener(Event.ENTER_FRAME,blit);
    function blit(e:Event) {
    c++;
    bnum = 1 - bnum;
    if (bnum) {
    bmd0.copyPixels(bmd1,r,p);
    } else {
    bmd0.copyPixels(bmd2,r,p);
    if (c==1000) {
    tf.text = String(getTimer()-t);
    removeEventListener(Event.ENTER_FRAME,blit);

  • I'm Writing from singapore. Can i purchse Apple tv from Apple store and use it in singapore. u will be only using it for the airplay feature. not keen in the movie or song download. just air play will do.. is it possible? apple TV is not sold in singapore

    I'm Writing from singapore. Can i purchse Apple tv from Apple store and use it in singapore. i will be only using it for the airplay feature.
    not keen in the movie or song download. just air play will do.. is it possible? anyway apple TV is not sold in singapore.
    Please revert
    thank you
    Vejan!

    You may or may not already have your network set up correctly, it's just that I can't tell from what you have said.
    I have a main router provided by my ISP, I have several other Airport Extremes and Airport expresses connected by Ethernet, all set up to bridge the network created by the main router.
    Each maker has their own settings, but bridging should be reasonably obvious. In simple terms my main router distributes IP addresses to all devices, the Airports bridge that network by passing these addresses to the devices from the main router. A base station that isn't in bridging mode will distribute its own addresses to the devices connected to it.
    I don't really follow your next point.
    instruction for configuration vary from manufacturer to manufacturer, the best course of action here is to refer to the manual. If everything is set up properly the addresses of everything on your network will have identical sets of numbers for the first 3 of 4 groups of numbers that make up an address, the last set must always be different. I think the part you are referring to with your DD-WRT is the option to have Ethernet and wifi bridged or not.
    Some routers may be easier to configure than others, but generally speaking they should all work with the Apple TV. 5Ghz is less likely to suffer interference but it is much more likely to be blocked by solid objects, it may or may not be an advantage.

  • HT4743 Why isn't episode 5 of Rizzoli&Isles available on iTunes Store yet ? It's usually available the day after it have been aired. Ep 5 was aired tuesday 23rd, but is still not possible to watch in iTunes..

    Hi,
    Why isn't episode 5 of Rizzoli&Isles available on iTunes Store yet ? It's usually available the day after it's aired. Ep 5 was aired tuesday 23rd, but is still not possible to watch in iTunes..
    Thanks,
    Rennuss

    Ask the content provider.

  • I got a mid 2011 macbook air 13 with 128gb ssd is it possible to upgrade my storage?

    i got a mid 2011 macbook air 13 with 128gb ssd is it possible to upgrade my storage?

    It is entirely possible, as many have known from day one (as ifixit's first teardown revealed). Unlike the unupgradeable memory, the SSD is a discrete expansion card that is removeable with just one screw, after removing the case cover. It is however debateable as to whether such an expansion is worth the possible risk of making demonstrable changes to the MBA whilst still under warranty. So you may want to stave off consideration for a while.
    I made the upgrade recently on my older 2010 MBA, and it was easier than upgrading the HDD on my old MacBook Pro.
    Here OWC/Mac Sales has kits and instruction videos.

  • Macbook air freezes in screen save mode (Mid 2011 model using Mountain Lion

    My MacBook Air freezes during screen save mode & is completely unresponsive.  The only option is to press & hold the power button to force a power down then restart the laptop.  This issue is not intermittent but happens every time the laptop is in screen save mode for any length of time (+20 mins).
    The laptop is a Mid 2011 model. 1.8 GHz i7, 250 GB solid state HD, 13" display with 4 GB RAM.  I updated to Mountain Lion latest version about 1 month ago.

    Hi there. I'm not using any 3rd party screen saver software, only the standard Mountain Lion supplied stuff.
    I did have to get the Genuis Guys to reset my SMC as my battery, fan &amp; power lead were showing problems.  Those issues are now solved but this has persisted.
    I am considering a reinstal of the OS system but that is a 1 hour download following by ?? hours of waiting for the program to restart.
    I'll try using one of the other screen saver options to test that.
    Thanks for that idea.

  • Error Message: Change of update mode not possible due to open V3 update

    Hi Gurus,
    I got error message when i change update mode (LBWE) from V3 to Direct or Queued delta method.
    Error Message: Change of update mode not possible due to open V3 update
    Long text: You are not allowed to change the update mode for application 11 from V3 to another method. This is because there are still V3 update entries for update module MCEX_UPDATE_11 that have not been processed yet.
    Pls anyone give solution for this.
    Thanks
    Muthu

    Hi Sreeni,
    i did check in all the below Tcode as you adviced.
    1. Clear all record at SM13, LBWQ / SMQ1, Setup tables, RSA7 for particular datsasource or application..
    2. For LBWQ provide date range and delete not required records.
    I did not get the 3rd point " Need to clear in CLINTS of R/3 system" of your reply.
    what does that mean?
    I checked all the above tcodes and got the same message as no queue or data exists".
    I went SBIW tcode and activated my data source and try to change the Update mode but still it is throwing error message as "Change of update is not possible due to open V3"
    Please help me out.
    It will be very helpful for me if you could share steps or docs regarding this issue.
    Thanks,
    Shailaja

  • What affects GPU mode rendering?

    Hi all,
    I use bitmap based rendering in GPU mode for performance.  All vectors and fliters etc are converted to a bitmap at runtime.  It's working great.
    I understand that rotation and scale will not affect the performance - this is all handled by the GPU.
    1) Does ColorTransform affect GPU (will the bitmap need to be rerendered and pushed into texture memory again?
    2) What about masking the bitmap with a shape, or with another bitmap?
    Cheers,
    Peter

    After I fixed all the orientation issues on my PC (by deleting all thumbnails after the photo is correctly oriented), and deleting the ipod photo cache, I resync my ipod and all my photos now have the correct orientation on both PC and ipod.
    Except now two of the album covers (icon) have the wrong orientation! Even though the same photos (first photo) in the album displays correctly on the ipod.
    I'm running out of ideas. Any suggestions?

  • GPU mode not functioning, using ATI HD3870 or ATI HD3200.

    When I run Pixel Bender in GPU mode, on either my desktop computer or my laptop, image loading fails with the following message:
    "Error loading file: mandelbrot.png" (same problem with the other example files, and also for other jpg and png files).
    and when I try to exit the program after failing to load an image, Windows 7 tells me it stopped responding.
    When I run it in CPU mode, this problem disappears.
    I think this is strange because I thought the HD3200(onboard graphics chip) or at least the HD3870 were supported.
    Both my Desktop computer and my laptop are running Windows 7 64-bit.

    I forgot to include Dxdiag information.
    DirectX Version: DirectX 11
    Card name: ATI Radeon HD 3800 Series
           Manufacturer: ATI Technologies Inc.
              Chip type: ATI display adapter (0x9501)
               DAC type: Internal DAC(400MHz)
             Device Key: Enum\PCI\VEN_1002&DEV_9501&SUBSYS_12001462&REV_00
         Display Memory: 2297 MB
       Dedicated Memory: 506 MB
          Shared Memory: 1791 MB
           Current Mode: 1440 x 900 (32 bit) (60Hz)
            Output Type: HD15
            Driver Name: atiumd64.dll,atidxx64.dll,atiumdag,atidxx32,atiumdva,atiumd6a.cap,atitmm64.dll
    Driver File Version: 8.14.0010.0716 (English)
         Driver Version: 8.681.0.0
            DDI Version: 10.1
           Driver Model: WDDM 1.1
      Driver Attributes: Final Retail

Maybe you are looking for

  • Time Machine Back up error message format

    Trying back my MacBook Pro  thru Time machine to a external hard drive, I receive this error message, Time Machine could not complete the backup to "3TB" The Back Up disc is not MAC OS Extended (journaled) format which is required. Thank you,

  • Uccx comparing time objects in script crossing dates

    Hi There! Im using Jonathan Schulenberg sub_datetime.aef script which is an awesome script for grabbing Timezone,currentTime,currentTimeInt date and dayofweek information. I have implemented a script at a customer site using this logic and it works g

  • BC-Adapter. Need proxy settings?

    Hi, i work on a idoc-scenario SAP -> XI -> BC ... In the RWB i got an error "Unknown Network". I think, this could be a proxy-problem, but in the bc-adapter i cannot find any settings to use a proxy? How can i solve this? Regards, Bernd

  • Migration 9.0.3.3 - 9.0.4.0 : Problem with executeQuery()

    I have a problem with the viewObject.executeQuery() method. I have a viewObject "Response" with following SQL : SELECT response.target_id, response.survey_user_id, response.question_id, response.question_option_pos, response.response responsetxt FROM

  • Aperture incorrectly reading white balance data from RAW file?

    I'm having some problems with both Aperture 1.1.2 and 1.5 importing RAW files from a Nikon D70 and a Canon G6. In both cases, Aperture is not reading the "as shot" white balance correctly. With the G6, Aperture is always setting a fixed color tempera