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?

Similar Messages

  • 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.

  • 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.

  • 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

  • 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.

  • What is stealth mode and is it good for your computer

    what is stealth mode can you please help me i just found it through my firewall and i am scared about it

    Stealth Mode just means that the computer will not respond to a "ping" or similar network enquiries. This means that anyone trying to communicate with your computer will not receive any reply.
    It will not harm your computer to turn it on, but it may adversely affect any networking programs which you use. I would turn the firewall on, but leave Stealth Mode off unless you really know you need it.
    Matt

  • 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);

  • Is it possible to use the Intel graphics for the display and use the NVIDIA GPU for rendering at the same time?

    I have been trying to figure this one out for a couple of days. I found the CUDA mac drivers on NVIDIA's website and installed them. I have been working in Blender. After the driver install I can now switch between CPU and GPU processing, Great. It works, but I am not experiencing decreased render times like I had read about or expected. It's about the same. While using the GPU for rendering, my OS is choppy, leading me to wonder if there is a way to use the NVIDIA just for computing power?
    Any help would be grand.
    Thanks

    No.

  • I have a Windows 7 laptop using I tunes 64 and all my music files are on an external disc. I rarely use I tunes and at one point moved all my files (including the music files) from one external disc to another without considering what affect this wou

    I have a Windows 7 laptop using I tunes 64 and all my music files are
    on an external disc. I rarely use I tunes and at one point moved all my files
    (including the music files) from one external disc to another without
    considering what affect this would have on the I tunes library. When I eventually
    attempted to use I tunes, every selected a song from the library resulted in a
    message stating that the file couldn't be located. After following some of the procedures
    explained in this community I was able to reconnect the library back to where
    the associated music files are presently stored. However, there are still 2
    problems that need to be corrected. 1) Every song file now has a duplicate. One
    file works and the other file will result in the same message stating that the
    file couldn't be located. Before there were 4,000 songs in the library, now
    there are 8,000 songs. I need to eliminate the 4,000 dead song files. 2) All
    the playlists are still associated with the dead song files which makes the
    playlists unusable. Can the playlists be reconnected to the usable files
    without manually having to recreate them? Thanks in advance for the help.
    sdkr

    So am I understanding correctly?
    You used your iPod as a hard drive (drag and drop) instead of having iTunes install the music?
    If you used drag and drop your choices are different than if you used iTunes to transfer.
    Good luck!

  • 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?

  • Immediate-Mode Rendering

    Hi, i wrote a normal rendering methode but i want to change it to Immediate-Mode Rendering which is in Java3D
    can anyone help me and tell me how to do that?
    here is my current rendering function that i want to change:
         public void render( Scene scene )
              Viewport eye = new Viewport( scene.viewpoint, 0, 0, width, height );
              double daa = 1.0 /antialias;
              for (int y=0; y < height; y++)
                   for (int x=0; x < width; x++)
                        DColor color = new DColor( 0.0, 0.0, 0.0, daa*daa );
                        for (int sy=0; sy < antialias; sy++)
                             for (int sx=0; sx < antialias; sx++)
                                  scene.trace( eye.ray( x + sx*daa, y + sy*daa ),
                                                 color, 0 );
                        putPixel( x, y, color.getRGB() );
              flush();
         }

    GLuint vboid;
    glGenBuffers(1, &vboid);
    glBindBuffer(GL_ARRAY_BUFFER, vboid);
    Your vboid is currently pointer, is it allocated? If it isn't your code makes no sense at all and it's miracle it doesn't crash on gen call.
    Also, gdb will tell you more if you read the documentation
    Last edited by Cloudef (2012-07-04 15:14:02)

  • 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

  • What is Hotspot Mode in the Graphics toolbar?

    I am new to FrameMaker and am trying to figure out what the Hotspot Mode is for. Thanks.

    And if you like listening to the narrator of the video...  I'll be doing a series of 5 Adobe TCS webinars between now and the end of August. The first is starting at 10am Pacific today. Make sure to tell any colleagues that use Fm, Rh, Cp, EPUB.
    How-To Webinar: FrameMaker DITA output to PDF — adobe.ly/14ZzI3E
    -Matt
    Matt R. Sullivan
    co-author Publishing Fundamentals: Unstructured FrameMaker 11

  • In the NI-5640R Instrument Driver API Examples for the Modulation Toolkit what is the mode of operation of the DAC/DUC(AD​9857)

    In the NI-5640R Instrument Driver API Examples for the Modulation Toolkit what is the mode of operation of the DAC/DUC(AD9857)

    In the single tone mode AD9857 would not take any digital data. It ganerates the sinusoidal wave using DDS present inside.
    Message Edited by Vinny ICS on 05-25-2009 05:04 AM

Maybe you are looking for