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

Similar Messages

  • Merging/Flattening Layers with different blending modes and maintaining the visual appearance

    Hello,
    I see there are many others that are having the same problem as me. And alas, it doesn't seem like the problem has been solved or very understood for that matter.
    I want to be able to take a document, that has multiple layers, inside of multiple groups with various layers having various blending modes applied to them and from within that document, select simply two of those layers, one with a Divide blending mode and the other layer Normal, merge those two layers, but have the visual appearance of the merged layer maintain the visual appearance of what the layers looked like before I merged them.
    Everytime I attempt this, Ps takes my Divide layer, reverts it back to Normal and then merges the layers, thus changing the appearance of what it was before the merge. This is not the desired result.
    I understand that when you flatten an entire series of layers, it applies all the blending modes and maintains the visual appearance. Is there a way to do this with just two layers instead of all the layers? If so, that would be great information. If not, why not?
    Thank you
    Jake

    Short answer:  No. 
    A "layer" with a specific blending mode implies a sequence of math operations on a given pixel.  Think of the visible pixel R, G, and B values as the result of a potentially complex math formula that combines numbers from each layer in complex ways (those ways being defined by the blending mode you've chosen).  You can't always simplify particular factors of your choosing in a given math formula.
    The next step is to examine why you would want to do so.  Perhaps there's a more direct way to achieve your goal that would avert the need entirely.
    Another possibility, if the effect of several layers together is something you'd like to manipulate as a unit, is to Group the layers.
    -Noel

  • 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

  • A Characteristci appears twice under the Rows Column on the left hand side.

    Hi All,
    According to the requirement , there are 2 Material Numbers ,1 of them is used for Compounding,which is not required in the Report,but as it is used for Compounding ,we need to place that in the rows.
    We have put tat in "NO DISPLAY" mode,but  Material Number appears twice under the Rows  column, on the left hand side of the screen, in the Portal when we execute the Report.How Can we have to display only 1 Material Number on the left hand side of the screen?
    Thanks in Advance,
    Sravani

    the left hand side of the screen is reakky vague....you should be more specific...
    Probably you need to filter out the compounding characteristics in the global filter area.
    Thanks...
    Shambhu

  • Running under classic mode - Standard Options

    In WLS 5.1 server, there was an option to run under classic mode in a UNIX environment.
    We just upgraded to WLS 6.1 and in the docs, http://e-docs.bea.com/wls/docs61/perform/JVMTuning.html
    it mentions classic mode available in NT but not in UNIX.
    Does anyone know if the java option -classic will work under 6.1 and if not, what
    the new option is.
    Elizabeth

    -classic asks the JVM to use the old non-HotSpot JVM. First off, why do
    you want to use it? It's most likely slower.
    -- Rob
    E Johnson wrote:
    In WLS 5.1 server, there was an option to run under classic mode in a UNIX environment.
    We just upgraded to WLS 6.1 and in the docs, http://e-docs.bea.com/wls/docs61/perform/JVMTuning.html
    it mentions classic mode available in NT but not in UNIX.
    Does anyone know if the java option -classic will work under 6.1 and if not, what
    the new option is.
    Elizabeth

  • After upgrading to Yosemite under sleep mode for few hrs battery is getting discharged fully.

    System information
    Mac book Pro 13 inch Retina  Early 2013
    Processor  - 2.6 GHz Intel Core i5
    Memory - 8 GB 1600 MHz DDR3
    Graphics - Intel HD Graphics 4000 1024 MB
    Storage capacity - 500 GB
    OSX - 10.10
    Ever since I have upgraded from Mavericks to Yosemite - battery consumption has increased.
    and MOST CRUCIAL ISSUE IS - under sleep mode battery is getting drained like anything ...
    for eg - I had 70% charge last night and it got completely drained when I got up in the morning.
    there was no charge left in the battery after 6 hrs under sleep mode and it is happening for last 5 days every night...
    I have already tried various things as troubleshooting....
    Apple hardware test.
    SMC
    emptying caches etc....
    observing activity monitor and finding any program taking more energy etc... (nothing is found)..
      L3 Cache: 3 MB
      Memory: 8 G

    UPDATE: Resolved!
    Disabled all login items but problem persisted on normal boot. Resetting SMC and PRAM had no effect. After booting into Safe Boot, problem did not exist. Looked in console logs and saw this right as problem started to occur:
    10/20/14 6:49:07.004 PM com.apple.xpc.launchd[1]: (com.gspy.MO3V2Daemon[93967]) Could not find and/or execute program specified by service: 2: No such file or directory: /Library/MO3V2/MO3V2Daemon.app/Contents/MacOS/MO3V2Daemon
    This pertains to the Steelseries WoW MMO gaming mouse. Ran the uninstall.command from Applications for this mouse software and rebooted. Fixed.
    Light on MagSafe connector is orange, battery shows as charging, fan is not running constantly. I can't begin to understand how this would effect the battery charging functions but, after uninstalling this, the problem was resolved. Hope this will help someone else.

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

  • Can't log in with valid password, can't boot from disk, can't access disk utility, in single user mode can't reset password as appears locked in caps mode with '?' for forward slash, can anyone help?

    Can't log in with valid password, can't boot from disk, can't access disk utility, in single user mode can't reset password as appears locked in caps mode with '?' for forward slash, can anyone help?

    Which keyboard layout you were using? German, French ... I suppose your layout is reset to the default: US and you are unable to find the "?" or "/" ...
    Please have a look into the keyboard viewer, to see how the layout of your keyboard is actually.
    marek

  • I downloaded Mtn. Lion about three weeks ago to my early 2008 24" IMAC. Logging in generates all sort of weird graphics and finally a lock up. Unusable except under safe mode.

    I have been on the phone with technical service twice ( both as helpful as they could be) and took the computer into the apple store to have the hardware checked out. All of the hardware checked out. They installed Lion in place which is useless to our family as the last backup was done under Mtn. Lion in safe mode. I reinstalled everthing from the backup and can work from safe mode but this has its obvious disadvantages.
    What happens is when (if I get this far) I log in,  the desktop graphics go "crazy" and eventually the computer locks up. I have reinstalled Mtn. Lion numerous times with no improvement to the situation. I post this out of frustration and hoped for answers. That $20 download is not worth the cost of the loss of  use of the Office programs, the Adobe programs not to mention photos, teaching documents, scouting documents, family documents, music, that are all somewhat in limbo because of this mess.
    As a long time Apple product user I have not come to expect this kind of problem from Apple products. I have not been advised of how I will know when a "fix" has been arrived at leaving me further in the dark and discouraged. School is starting up on Monday and this computer gets a lot of use from both a teacher and a High School student.
    Apple, you said that our particular model was compatible with Mtn. Lion. It has been checked out at the local Apple store and everything found to be OK. Our backup is under Mtn. Lion (running in Safe Mode). We have no way to go back to Snow Leopard to retrieve and run all of our previous programs. So Apple, the ball is 100% in your court. When are we going to have the solution?

    Well I believe I was able to clear those two programs out. I still had the dmg files with each having an uninstall. VirtualBox was a clean uninstall and while the Palm SDK would seem to be gone it was not as clean an uninstall, having repeated it several times.
    I have since restarted three times, once after pulling the plug from the back and waiting for several minutes. One time I thought it was going to be stable but after about 2 minutes it started with the graphics problem again and then finally locked up.
    Could Skype or Flash have something to do with this?
    Here is the latest dump under Safe Mode:
    Last login: Sat Aug 18 16:06:35 on console
    Macintosh-2:~ MMLyonsHome$ ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta} * L*/Fonts 2> /dev/null
    /Library/Components:
    /Library/Extensions:
    /Library/Frameworks:
    AEProfiling.framework
    AERegistration.framework
    AudioMixEngine.framework
    HPDeviceModel.framework
    HPPml.framework
    HPSMART.framework
    HPServicesInterface.framework
    HPSmartPrint.framework
    HPSmartX.framework
    NyxAudioAnalysis.framework
    PluginManager.framework
    TSLicense.framework
    iLifeFaceRecognition.framework
    iLifeKit.framework
    iLifePageLayout.framework
    iLifeSQLAccess.framework
    iLifeSlideshow.framework
    iTunesLibrary.framework
    /Library/Input Methods:
    /Library/Internet Plug-Ins:
    AdobePDFViewer.plugin
    Flash Player.plugin
    Flip4Mac WMV Plugin.plugin
    Flip4Mac WMV Plugin.webplugin
    JavaAppletPlugin.plugin
    OfficeLiveBrowserPlugin.plugin
    Quartz Composer.webplugin
    QuickTime Plugin.plugin
    flashplayer.xpt
    iPhotoPhotocast.plugin
    nsIQTScriptablePlugin.xpt
    /Library/Internet Plug-Ins (Disabled):
    Flash Player.plugin
    /Library/Keyboard Layouts:
    /Library/LaunchAgents:
    com.hp.devicemonitor.plist
    /Library/LaunchDaemons:
    com.adobe.fpsaud.plist
    com.adobe.versioncueCS3.plist
    /Library/PreferencePanes:
    Flash Player.prefPane
    Flip4Mac WMV.prefPane
    VersionCueCS3.prefPane
    /Library/PrivilegedHelperTools:
    /Library/QuickLook:
    GBQLGenerator.qlgenerator
    iBooksAuthor.qlgenerator
    iWork.qlgenerator
    /Library/QuickTime:
    AppleIntermediateCodec.component
    AppleMPEG2Codec.component
    FLV.component
    Flip4Mac WMV Advanced.component
    Flip4Mac WMV Export.component
    Flip4Mac WMV Import.component
    /Library/ScriptingAdditions:
    Adobe Unit Types.osax
    /Library/Spotlight:
    GBSpotlightImporter.mdimporter
    LogicPro.mdimporter
    Microsoft Office.mdimporter
    iBooksAuthor.mdimporter
    iWork.mdimporter
    /Library/StartupItems:
    HP IO
    HP Trap Monitor
    /etc/mach_init.d:
    /etc/mach_init_per_login_session.d:
    /etc/mach_init_per_user.d:
    Library/Address Book Plug-Ins:
    SkypeABDialer.bundle
    SkypeABSMS.bundle
    Library/Fonts:
    Library/Input Methods:
    .localized
    Library/Internet Plug-Ins:
    Library/Keyboard Layouts:
    Library/LaunchAgents:
    com.adobe.ARM.930da3ce175de4e82bd3cdf1dd8571f74bd3b6a7236bc94bfc00f6e9.plist
    com.google.keystone.agent.plist
    Library/PreferencePanes:
    Macintosh-2:~ MMLyonsHome$

  • Exception occured when deploying in Visual Composer with web dynpro mode

    Hi,All
    when I deploy application in visual composer with web dynpro mode, exception occured as following, please help me.
    Thanks.
    best regards
    Jiande Ding
    The initial exception that caused the request to fail, was:
       com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to prepare application sap.com/tcwd4vcengineconfigstd for startup. Reason= Clusterwide exception: Failed to start application sap.com/tcwd4vcengineconfigstd: The referenced application sap.com/tcwd4vccorestdinfoactors cannot be started. Check the causing exception for details. Hint: Is the referenced application deployed correctly on the server?
        at com.sap.engine.services.webdynpro.WebDynproContainer.prepareStart(WebDynproContainer.java:1494)
        at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:223)
        at com.sap.engine.services.deploy.server.application.StartTransaction.prepareLocal(StartTransaction.java:176)
        at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesLocal(ApplicationTransaction.java:365)
        at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:132)
        ... 8 more
    Edited by: Jiande Ding on Nov 4, 2008 1:08 PM

    Hi
    Check out this link
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/7c/9ce742bdab5604e10000000a155106/frameset.htm
    Thanks

  • I upgraded to v16 and now when I go to Hotmail/Qutlook email appears in mobile mode. How do I get it to appear in full browser mode?

    How do I get it to appear in full browser mode?

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can also check your security software (firewall) to make sure that if doesn't modify the user agent or otherwise makes the website think that you use a mobile connection.
    You can check the network.http.* prefs on the about:config page and reset all bold user set network.http prefs to the default value via the right-click context menu -> Reset.
    *http://kb.mozillazine.org/about:config

  • TS1489 8.Deselect the checkbox under Compatibility mode if it's selected.

    Deselect the checkbox under Compatibility mode if it's selected.
    thats step 8 for turning off the compatibility mode of itunes, but i dont see that checkbox. I have windows 7, and everytime i use itunes a box pops asking for me to change some setting. i dont want it to happen anymore. please help me
    thanks

    Could you post a screenshot of your compatibility tab, please?
    Open the tab. While the tab is open, hold down the Alt key and hit the PrtSc key. Paste the screenshot into an image file (using a program like Paint), and save the file. 
    Start a reply here and click the wee camera icon at the top of the reply window. Click "Choose file", browse to the image file, select the file and click "Open". Now click "Insert file" to insert the screenshot into the reply.

  • How to find sql server backup was taken under compression mode

    Hello,
    How to find SQL server backup was taken under compression mode ? I have disabled the Compress Mode backup setting but I want to make sure the backup is taken without compression.
    Is there a script for that?
    Thanks
    JK

    I have disabled the Compress Mode backup
    That is only a default setting, in backup command you can always overwrite it to a different value.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • 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

Maybe you are looking for

  • Sync iPod color after computer crash and loss of music

    How do I sync my older iPod color now with a new windows vista computer and not lose the music already on the iPod? the older hard disc crashed and was not recoverable so all of the downloaded music over 2000 songs were lost but are still on the iPod

  • How to handle an Exception in GP through webdunpro

    Hi, How to handle exception in WebDynpro GP callable objects. I created exception parameter in getdescription() method like IGPExceptionInfo processExc1 = technicalDescription.addProcessException("USER_NOT_FOUND");   processExc1.setNameKey("USER_KEY"

  • Transfering files using drag and drop to Nano P

    I havent installed the supplied disks that came with my Nano Plus but am transfering files using drag and drop from "my music" folder on my computer to the Nano. These files are stored on my computer as the Name of the Artist as the folder name with

  • Possibility of calling ALV report

    hi experts, i have a requirement that i have to design an entry screen whcih contain pushbuttons (SAVE, CLEAR ,DISPLAY). whenever user pressed DISPLAY, he wants to call the selection screen of an alv report which is already exists. is that possible t

  • Triggering the Self-Registration of the Adapter Engine ???

    Hi,    We have a central SLD. Also we have the SLD of XI.    When coming to the post configuration step of "Triggering the Self-Registration of the Adapter Engine" it is said to                Restart the application <b>com.sap.aii.af.cpa.app</b> to