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?

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.

  • Garbled/scrambled text with Air for Android & GPU mode

    Please excuse the big image! Has anyone come across this? As you can  see the 'U' in 'Nebula' is scrambled and so are the digits below best  time.  It only happens within  the space a character would occupy. The line under 'game' is just a reflection.
    I can't work out what's causing it, it's not always the same  characters that do it although the U in Nebula is always scrambled.  Sometimes digits are scrambled and sometimes the same ones are not. It  seems to occur with embedded fonts and with normal ones like Arial. I've  tried using both Classic and TLF text, and changing anti-aliasing  settings. It occurs on both dynamic and static text.
    But it only happens  with GPU rendering, not CPU rendering.
    I can't find any mention of this at all on Google, starting to wonder if perhaps it's just my phone? (Desire S).
    Any input is greatly appreciated!

    Thanks for the fast reply! Switching to device fonts does fix the problem, but it means using some horrible default font rather than the one I want to, which I've embedded. I've tried a few more settings and Bitmap Text seems to fix it in some instances but not in others.

  • How do I disable auto-smooth in CS6?

    Whenever I make a stroke, it autosmooths is, HELP!!

    Select a different brush tip or edit the one you are using.
    Read about brushes in the manual.

  • How do i remove auto smoothing on cs6?

    i have been messing around with it but i can't find anything. it's really annoying, it changes what i keep trying to do.

    Hi,
    Found a similar discussion that could help you.
    Re: How do I disable auto-smooth?
    Thanks,
    Preran

  • How can I disable auto-switching desktops?

    I've long appreciated the spaces/mission control feature of OS X. However, it seems more oriented to organizing desktops by application rather than by project.
    Like many users, I suspect, I use different desktops for different projects, each of which requires a variety of applications (finder, word docs, spreadsheets, etc). When I'm working on project 1 in desktop 1, I never want to be whisked away to desktop 2. In fact, I never want to be switched to a different desktop automatically. If I click on an application, I want it to open a new window for that application. If a new iteration of an app can't be opened (ie, Mail), I'd like it to pull Mail to me rather than send me off to it. Aren't apps supposed to come when we call, not the other way around?
    I have unchecked "...switch to a space with open windows of that application" in System Prefences, but my desktop continues to auto-switch, especially with Finder.
    In short: is there a way disable auto-switching entirely? I'd like to be able to assign windows and navigate manually without being constantly pulled away from the project I'm working on.
    Thanks for the help; I really appreciate people spending their time helping others on forums like this one.

    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
    Isolating an issue by using another user account
    If the problem is still there, try booting into the Safe Mode.  Shut down the computer and then power it back up. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode
    Safe Mode - About
    General information.
    Isolating issues in Mac OS X
    Troubleshooting Permission Issues
    Step by Step to Fix Your Mac

  • 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

  • Disable Auto Orientation only in a specific frame!

    Hi there! 
    I appreciate if you please guide me with your experience in Mobile App design.
    My App contains 5 frames of data (movieclips), that each frame has 2 designs:
    1- Stand mode design    (portrait)
    2- Wide mode design     (landscape)
    So far it works great and I have published my App both on Google Play and Apple Store.
    Frames structure is as follows:
    frame   1            Loads External Data
    frames 2-6         Each frame contains 1 MovieClip designed based on mobile "Stand mode"
    frames 22-26     Each frame contains 1 MovieClip designed based on mobile "Wide mode"
    (Example: contents of frame 2 and 22 are the same, also 3 & 23 ... 6 & 26)
    (frame 2 is STAND design, 22 is WIDE design, and so on)
    In "Air Setting Dialoge", I have selected aspect ratio "Auto" and "Auto orientation".
    And I have this code in Frame 1 to do the rotation trick:
    stage.addEventListener(Event.RESIZE, resizeLayout);
    function resizeLayout(e:Event):void
                   setPosition();
    function setPosition():void
            //Phone turned from "Wide" to "Stand"
                   if (stage.stageWidth < stage.stageHeight)
                                  //App is now in "Wide" mode - means between frame 22 to 26
                                  if (currentFrame>20) 
                                                 //go to the same position of App but in "Stand" mode
                                                 gotoAndStop(currentFrame - 20);
                   else
                                  //Phone turned from "Stand" to "Wide"
                                  if (currentFrame<20)
                        //go to the same position of App but in "Wide" mode 
                         gotoAndStop(currentFrame + 20);
    Well, and finally my question:
    1- Is this way I have programed my App to rotate, a proper approach?!
          (in this way I can easily arrange objects on screen and also position them based on math calculations)
    2- If I want to disable auto rotation only when app reaches specific frames, what should I do??
       (for example I want the app Not to auto oriente in Frame 6 and 26., but it rotates in other frames)
    Hope it was not confusing and I cant wait to check out your valuable guidance!
    All the best and thanks a lot for your time.

    Hi there all!!
    Still I have no answer for my question No1, BUT I could find my answer to the 2nd question and here it is for your kind notice:
    Special thanks to Daniel Dura
    http://www.adobe.com/devnet/flash/articles/screen_orientation_apis.html
    I just added this code to my first Frame:
    stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGING, onOrientationChanging);
    function onOrientationChanging(event:StageOrientationEvent ):void
              if (currentFrame == 6 || currentFrame == 26)
                        event.preventDefault();

  • My android GPU performance is far more stable now!!!

    The other day my phone was updated to Android 2.3 (Gingerbread), coincidently i was prompted for the Air2.7 update as soon as i rebooted.
    My Air app GPU performace stability has really improved a ton! I figure it was Air 2.7 update, but so far Adobe has not really claimed any GPU performace inhancements in Air2.7 (as far as i read it was mostly CPU performance).
    Previously I had good performance but after a few days of the phone being on, Air apps would not perform well, i would get intermittent rendering stutter in GPU mode. Eventually i would need to reboot the phone and it was good for a while, even if i had everything else closed out and high memory availble. It would only seem to be Air apps with the issue
    Since the update(s) my performance is rock solid! The difference is huge, if no GPU enhancments, perhaps 2.7 garbage collector update was just that great?
    Anyway i wanted to say
    1) Great job Adobe team!!
    2) It is possible that Android 2.2  (froyo) might just not perform as well or have slight memory managment issues.

    Which firmwar version do you have?. I have the 1.0633.18.01. RM-208. Perhaps the problem is a firmware version.
    My phone reboot automacally and it makes a lot of times during a call. That is very frustating. I´ve heared in other forums and in this forum that those stability problems are common in this phone.
    There could be 3 reason for the problem:
    1.- Firmware problem: Very easy to solve by Nokia. I believe that it is the cause of the problem (too many posts with stability problem to a hard problem)
    2.- Hardware bug of this model: That is imposible to solve. The doubt is that there are people that don´t have any problem (as you).
    3.- Hardware problem in this unit: If it is the cause I have to send it to NOKIA and be without my bussines phone for 20 days. That´s mean no blackberry mail, no contact (I have almost 1000 and there isn´t any tradicional phone or SIM that support that amount...)
    In the past I had a Imate SP3 with windows and didn´t had any problem with it (some times it makes strange but never interrumped me a call).
    So everybody can see that I´m "very happy" with this phone...
    PLEASE, NOKIA, PUBLISH NEW FIRMWARE FOR THE PHONE THAT SOLVE PROBLEMS.

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

  • How to lock bottom control bar from auto-hiding in full screen mode

    I am using Flash Player with ie in Win7. It is very irritating while watching YouTube videos for the status/control lbar to keep auto-hiding. When the bar auto-hides, the pause/play position becomes the progress bar position - and a click where Pause used to be resets the video to start. How can I keep the bottom control bar from auto-hiding in full screen mode?
    Thank you, Steve  [email: [email protected]]

    There's nothing you can do to Flash Player, itself, to prevent this from happening.  Apparently, there's no way to disable via youtube, or google, either  -- http://productforums.google.com/forum/#!topic/youtube/_E5yFvNJCPk
    You SHOULD be able to call up the bar by hovering the cursor at the bottom of the screen and then, after a a second or two,  click on the pause button.    (It shouldn't restart the video in other words.)  But, if for whatever reason,  this doesn't work,   just click once in the center of the screen to pause the video.   To restart,  click the center of the screen again.
    HTH,
    OF

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

  • [Solved]can't disable auto login after upgrade to gnome 2.28

    Prior to upgrading gnome to the latest version I had set gdm up to auto log me in. Since the upgrade I can't figure out how to disable auto login. I would like to be able to disable auto login, can anyone on here please help me out here? Thanks for any help provided.
    Last edited by daedalusman (2009-11-03 05:06:05)

    anonymous_user wrote:Look in your /etc/gdm/custom.conf file.
    Ah, thanks a bunch. This had been bothering me for awhile now, just finely got around to trying to fix it. Thanks again.
    Ranguvar wrote:
    You can't.  Using the advanced AI now in 2.28, GNOME has decided you are too stupid to log in yourself, and is now in User Protection Mode(TM).
    tongue xD
    Sorry, I have no constructive advice.  Just poking fun.
    No problem, you actually made me laugh out loud, so thanks for that.

  • Disabling Auto Generate Captions in Software Simulation

    How can I disable auto generate captions in software simulation?

    Go to Edit > Preferences > Recording > Mode and deselect the Add Text Captions check box.
    Sreekanth

  • How to Disable "Auto Align" in [System Pref.] - [Display] - [Arrangement]

    Does anyone know How to Disable "Auto Align" in [System Preferences] -> [Display] -> [Arrangement]?
    It always want to align the two screens from the top when they are lined up close together and I need them to be aligned from the bottom. Since the resolution heights are so close together (1080 & 1050) it does not allow one to align side by side from the bottom as it prioritizes top alignment.
    I guess I'm looking for a script to disable this feature.

    Anyone got any ideas?

Maybe you are looking for

  • UEFI & syslinux - system will not boot without keyboard plugged in

    Somewhat of a weird one. I have successfully gotten a UEFI Arch system booting, using the https://wiki.archlinux.org/index.php/Sy … FI_Systems and https://wiki.archlinux.org/index.php/Un … _Interface wiki articles. Speficially, I used "efibootmgr" to

  • Jpeg into raw and ....

    how to i open a jpeg in camera raw? how do i get photos on my hard drive into an album or the "library"

  • Sales order reports

    HI Can anybody plz send the T.code where we see the Reason wise & Department wise sales oders ( Target & Achieved)

  • New operator question

    Consider the following class : class A { int x,y; public void display() { System.out.println("x=" + x); When you say: A a = new A(); Memory is allocated for x,y & the reference is stored in a(object). I have two questions regarding this 1) When i say

  • Why wont my library transfer?

    Hi, I'm trying to transfer my library from my iPhone onto my new laptop as some songs are not on my laptop..although i dont know why as i copied all my itunes library from my other laptop. Its annoying as i know cant sync my phone with my new laptop.