How to use hardware acceleration in Swing?

Hi,
I searched in net and could not find anything clear on hardware acceleration using Swing.
To use the hardware acceleration, do I need to specify
-Dsun.java2d.opengl=true ? Is this must?
Without specifying this, Java 2D calls wont use hardware acceleration?
Kindly clarify. I could not able to find anything in net for this.
I am having ATI Radeon AGP card and using Linux as OS. I have installed the ATI driver. Now I need to know how to interact with hardware using Swing.
Regards,
fedorabee

Hi,
I searched in net and could not find anything clear
on hardware acceleration using Swing.
To use the hardware acceleration, do I need to
specify
-Dsun.java2d.opengl=true ? Is this must?No. I've never seen that before. My assumption is that you'd do that if you wanted to make sure you're using OpenGL and not DirectX. Swing will make use of 2D hardware acceleration on it's own. Don't specify anything special.

Similar Messages

  • How to use hardware acceleration in Java 2D

    Hi,
    I searched in net and could not find anything clear on hardware acceleration using Java 2D/Swing.
    To use the hardware acceleration, do I need to specify
    -Dsun.java2d.opengl=true ? Is this must?
    Without specifying this, Java 2D calls wont use hardware acceleration?
    Kindly clarify. I could not able to find anything in net for this.
    I am having ATI Radeon AGP card and using Linux as OS. I have installed the ATI driver. Now I need to know how to interact with hardware using Java2D/Swing.
    Regards,
    fedorabee

    please post your questions once and only once

  • How to use Hardware acceleration?

    In the panel of Publish Settings, there is a section 'Hardware acceleration' , this setting will work in which situation? Only for the application that plays videos?
    And how should I verify that if one certain video adapter supports this setting?
    Thanks a lot in advance.

    please post your questions once and only once

  • How to use hardware accelerated css transition to move an element smoothly

    Hello All,
    I have created an element twice the width of my stage, and would like it to move across the screen when a button is clicked.  The problem is that the animation is not smooth at all.  It stutters and gasps like an old car! I was wondering if it is possible to use a hardware accelerated css transition to make it move more smoothly.  If this is possible could someone please give me example of what code to write and where?
    Thanks and all the best!

    There's a few ways to do it, but I'd use a style sheet. So:
    1. Add this to the "creationComplete" Stage event:   sym.$("<link rel='stylesheet' type='text/css' href='styles.css'>").appendTo("#Stage");
    2. Create a style sheet (text file) in your project folder named "styles.css", and define a class:
    .force-webkit-acceleration {
         -webkit-transform: translate3d(0,0,0);
    3. Give your animated element the class "force-webkit-acceleration" in the properties panel (the little c-in-a-box icon next to the title field).
    Be sure that the style sheet file ends up in your "publish/web" folder too.

  • Finaly. How to enable hardware acceleration for X-

    After much discussion on this form and with my friends, I've finally cracked hardware acceleration for X-FI on Vista. It works by using Alchemy on a large scale and gives acceleration for everything you listen to. The breakthrough finally came through thanx to help and info I received from alexs3ds on this thread?http://forums.creative.com/creativel...message.id=645?It started as an emulation concept discussion and evolved in to this. It gives all your 3D audio effects and EAX in games without game by game transmutation and I have noticed a large quality and volume enhancement in normal music and film audio because even that is now accelerated. Here's a step by step guide on how to do it.[color="#ff0033">?[color="#3366ff">Download Alchemy and install. Get it here .[color="#3366ff">http://preview.creativelabs.com/alchemy/default.aspx[color="#3366ff">?[color="#3366ff">Open a?window in explorer and go to [color="#3333ff">Windows\System32.[color="#3366ff">?[color="#3366ff">Locate the file dsound.dll and right click on it then select properties.[color="#3366ff">?[color="#3366ff">Click the security tab then click advanced.[color="#3366ff">?[color="#3366ff">In the advanced security panel?that opens up, click the owner tab then edit.[color="#3366ff">?[color="#3366ff">Use this to set your user account name as owner. Use the other users and groups button if you can't see your account name select your user account name using the select users pane and add it. Make sure your user account name is set as owner.[color="#3366ff">?[color="#3366ff">Next you want to change permissions in the advanced security panel so you would click the permissions tab, click edit, on the panel that pops up click add and add your user account name. On permission entry panel, click full control under the allow line. Then ok everything and close every thing down till your back at the explorer.[color="#3366ff">?[color="#3366ff">Now rename dsound.dll to something like dsound.dll.bak. ( changing owner and permissions allows you to do this ).[color="#3366ff">?[color="#3366ff">Open up another explorer window and navigate to the Alchemy directory ie C:\program files\alchemy, highlight the dsound.dll file and the dsound.ini file and copy them.[color="#3366ff">?[color="#3366ff">Paste them into the system32 folder and that's it. Reboot your computer and you are now using hardware accelerated sound. ?[color="#ff0033">IMPORTANT NOTES YOU MUST KNOW[color="#ff0033">?This only supports 6-Bit samples. You can't use 24-Bit audio samples. You can however reverse the process and regain support. The Alchemy drivers can cause a bit of choppy sound now and then if you don't configure them right. See the Alchemy advanced FAQ for info. Plus, remember they are Beta. You can however update your system as and when alchemy updates. It's not known if every game will work with EAX or 3Dsound with this. To my knowledge?all, if not?most do.You can still edit and add game settings to the dsound.ini file. For help and info in getting the best quality out of your X-FI and a list of what XP software you can install off your driver disk that came with your card refer to this thread. http://forums.creative.com/creativel...essage.id=6029?Enjoy. Edit:- IMPORTANT UPDATE?This will only work if your card is set in game mode. It will not work properly in any other mode. See my post further down this thread for more details.Also important is that I have only been able to test this on Vista 32 ultimate. It is untested in any other version of Vista. Perhaps people who have it running on other versions of Vista could post this info and help put together a list. ?
    Message Edited by Sensi on 05-09-200705:20 AM
    Message Edited by Sensi on 05-09-200705:20 AM

    It does work, however I discovered more?important conditions. You MUST have your audio card in game mode BEFORE you do this. The reason is that the alchemy file passes the audio to OpenAL in game mode only. IF YOU TRY TO RUN GAMES IN ANY OTHER MODE YOUR SYSTEM WILL CRASH WITH BSD. IF YOU TRY TO RUN MEDIA PLAYER IT WILL HANG. IF YOU RUN DIRECTX DIAGNOSTIC YOUR SYSTEM WILL CRASH WITH BSD. YOUR?CARD MUST BE IN GAME MODE. IF YOU TRY TO CHANGE TO GAME MODE AFTER THE SWITCH, YOU WILL NOT BE ABLE TO AS THE AUDIO PANEL WON'T LOAD. DO IT BEFORE YOU SWITCH. As for windows replacing files after reboot, that aint happening to me. I've looked everywhere and can't find any sign of?were replacement files would come form either. Not that I'm saying it isn't happening, Vista is supposed to have a security system that stops you from replacing core system files. It just ain't happening in my system. However, I do have various system hacks in place and one of them may be stopping this. Need to look in to this. Fact:- I'm sitting with this in system now ( got no intentions of going back cause the audio's great ). I've tested 0 up-to date games and all give EAX etc. Without transmutation. Audio sounds amazing compared to what it was before and video audio finely plays in sync ( hurray). Maybay I should add a warning to this mod that you must only try it if you know what you are?doing.BTW in case this has anything to do with it, my system is :-
    Asus?am2 with nforce 4, amd am2 x2 dual core cpu, 2 gig dual channel ddr2 800, oem?SB X-FI and Vista 32 ultimate.
    Message Edited by Sensi on 05-09-200705:04 AM

  • How to Enable Hardware Acceleration in FireFox 31

    Please advise how to enable hardware acceleration in FireFox 31. All my graphics and other hardware/software is current and updated. I've also paired my Bookmark Toolbar down to under 20 entries.
    FireFox is so sluggish that just a few open tabs cause the pausing "wheel of doom" every time I try to enter information or go to another part of the website. Sometimes the pauses are 5-10 seconds, sometimes a minute or more.
    I do not have this issue on the other browsers that I use.
    Thank you in advance for your help!

    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
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can also check for problems with the sessionstore.js and sessionstore.bak files in the Firefox profile folder that store session data.
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Multiple_profile_files_created
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost and you will have to recreate them (make a note or bookmark them if possible).

  • Flash Player often crashes if using hardware acceleration.

    Hi, guys. Flash Player crashes. It crashes when the "Use hardware acceleration" checkbox is checked. And it crashes so bad, that only the Reset button helps.
    My PC is flawless. I'm running Winsows XP x64 SP2 (latest service pack for this OS), Nvidia Geforce 8600GT with latest drivers, DirectX 9c, Flash Player 10.3.
    If I disable hardware acceleration in the Flash Player settings, there are no crashes. Without HW acceleration videos are a little aliased and ugly.
    Why is that happening?

    Hi,
    I'm sorry you're running into these problems.  Could you follow the instructions on our video troubleshooting page and in addition to opening a bug report, please send the results to me at [email protected]?  I'll take a look and see if I notice anything out of place.
    Thanks,
    Chris

  • Is JMF use hardware accelerated through JNI possible?

    Dear all:
    I try to use JMF decode MPEG-2 data, through VeXP which wrote in C.
    So I think we can call C library through JNI pass encoded MPEG-2 data to VeXP, use hardware decode encoded MPEG-2 data to YUV-format raw data then return it to JAVA.
    but JNI seem can't pass media raw data by call by reference...
    It should cause a lot of memory copy.
    How about it's feasibility?
    Have anyone give me some suggestion?
    Regards,
    white

    There's a few ways to do it, but I'd use a style sheet. So:
    1. Add this to the "creationComplete" Stage event:   sym.$("<link rel='stylesheet' type='text/css' href='styles.css'>").appendTo("#Stage");
    2. Create a style sheet (text file) in your project folder named "styles.css", and define a class:
    .force-webkit-acceleration {
         -webkit-transform: translate3d(0,0,0);
    3. Give your animated element the class "force-webkit-acceleration" in the properties panel (the little c-in-a-box icon next to the title field).
    Be sure that the style sheet file ends up in your "publish/web" folder too.

  • Mercury Playback Engine doesn't use hardware acceleration in Premiere CC

    Hello,
    although hardware acceleration was supposed to be better in Premiere CC, it stopped working completly for me. The option to hardware accelerate is grayed out
    I'm running OS X Mountain Lion 10.8.4. NVidia CUDA drivers are version 5.0.61 // GPU Drover Version: 8.12.47
    This is my system:
    Hardware-Übersicht:
    MacBookPro9,1
      Prozessortyp:          Intel Core i7
      Prozessorgeschwindigkeit:          2,3 GHz
      Anzahl der Prozessoren:          1
      Gesamtanzahl der Kerne:          4
      L2-Cache (pro Kern):          256 KB
      L3-Cache:          6 MB
      Speicher:          16 GB
      Boot-ROM-Version:          MBP91.00D3.B08
      SMC-Version (System):          2.1f173
    NVIDIA GeForce GT 650M:
      Chipsatz-Modell:          NVIDIA GeForce GT 650M
      Typ:          GPU
      Bus:          PCIe
      PCIe-Lane-Breite:          x8
      VRAM (gesamt):          512 MB
      Hersteller:          NVIDIA (0x10de)
      Geräte-ID:          0x0fd5
      Versions-ID:          0x00a2
      ROM-Version:          3682
      gMux-Version:          1.9.23
    It worked pretty ok in CS 6 (apart from system freezes when using CUDA…) . Kind of a let down. Please help.
    Jens

    With this "hack" I was able to enable the CUDA acceleration. I inserted "GeForce GT 650M" in the aforementioned textfile (without "Nvidia"). Before that I also could only use software acceleration.
    Now with my machine I think I should also be able to use OpenCL, right? How do I get this option? These are my specs:

  • How to enable hardware acceleration in desktop Adobe AIR app

    Hello,
    As the author of this post How do I enable hardware acceleration in an air exe? , I am trying to enable hardware acceleration inside my AIR application
    If the user has disabled hardware acceleration in his flash player's settings, context3d.driverInfo will say "Hw_disabled=userDisabled"
    His only way to re-enable it is to open Internet Explorer or Firefox and right click on a flash content, then check "Enable hardware acceleration"
    I (we) would like to be allowed to re-enable it directly inside the AIR app (via actionscript code) and not telling the user to open a browser and check some random checkboxes (cause you know it's not very user-friendly...)
    A bug has been opened here Bug#3843535 - Disabling Hardware Acceleration in IE flash plugin disables it in AIR EXEs and is marked as fixed but nothing is fixed : there's still no way to enable hardware acceleration in desktop AIR application
    Thanks

    Hello,
    I pushed to get this bug fixed and was under the impression that we addressed this back in v16.  Can you share a sample app so I can have our team take a look?
    Thanks,
    Chris

  • Flash player BSOD crashes when using Hardware acceleration (+ATI card?)

    Hello,  I get frequent and recurrent BSOD crashes with the latest Flash player, watching some videos on Youtube.  I own a ATI Radeon 5700 video card and use the latest (v11.5) Catalyst drivers on Windows XP SP3, if this can help.  If I disable hardware acceleration through dxdiag, or in the Flash player options, the crashes cease.  Will this be fixed ?  If it won't, could hardware acceleration be disabled by default on next versions of the Flash player ?  Thank you.

    First thing to acknowledge is: BSOD crashes are 99.9999999% of the time due to critical OS problems or hardware. 0.0000001% of the time they are due to software, be it Microsoft or third party.
    If turning off the HW acceleration causes the BSODs to stop, I'd say there is a hardware problem (most likely) but there is also a slim chance that you have a memory fault your video card runs into when using software to accelerate the card.
    The BSOD gives information about the cause. If you have that it would help to point to the source of the Fatal Exception, and determine what steps youneed to take.

  • How to use 'Wait'/'Delay' in Swing

    Hi all,
    I want to simulate an interation between two peers,
    that exchange information among each other.
    The idea is to have a JPanel where JLabel("Text") are
    added in a fixed but consecutive intervals. Something like
    <Add label>; <Delay/wait a second>;<Add other label>; <Delay>;.....
    Is there an easy/simpler way to do this without using
    threads?
    Does Swing have a simple way to do what I want?
    Can you recomend a link for this?
    Pls note that I don't want to block my entire application.
    Thanks in advance for the help,
    Jorge

    Here is a link to the Swing tutorial on "How to Use Timers":
    http://java.sun.com/docs/books/tutorial/uiswing/misc/timer.html
    And here is a link to to thread that uses a Timer to 'continuously scroll text':
    http://forum.java.sun.com/thread.jsp?forum=57&thread=291161

  • [SOLVED] Firefox 28 stopped using hardware acceleration

    Up to Firefox 27, one could start Firefox with
    MOZ_ACCELERATED=1 MOZ_GLX_IGNORE_BLACKLIST=1 firefox
    or you could set
    layers.acceleration.force-enabled=true
    in about:config. Then you could check, whether Firefox uses hw-acceleration in about:support. There should be written something like "GPU-accelerated windows 1/1 OpenGL" instead of "0/1 Basic".
    Since Firefox 28, this doesn't work anymore and graphical glitches came back (see here: https://bbs.archlinux.org/viewtopic.php?id=178024)
    Any ideas/hints?
    EDIT: nvidia 334.21-2, linux 3.13.6-1
    Last edited by _abraxas (2014-03-19 17:46:35)

    I'm suffering the same issue here, using nouveau drivers.
    Just to throw it out there, I'm convinced nobody packaging for arch broke anything this time , I lost this capability using aurora (installed locally from mozilla ftp) some time ago but didnt really notice/look until version 29.
    Nevermind, I seem to have fixed it after some searching: http://featherweightmusings.blogspot.co … refox.html
    export MOZ_USE_OMTC=1
    layers.offmainthreadcomposition.enabled ==> true
    Result:
    GPU Accelerated Windows 1/1 OpenGL (OMTC)
    Last edited by Psykorgasm (2014-03-19 17:33:42)

  • How to use GPU acceleration in final rendering process in AE CS6 updated?

    Hello guys!
    Maybe my question is a frequent, but in fact I didn't get answer listing FAQs here.
    So I have new NVIDIA Geforce card where CUDA supported. I enabled Ray-Traced 3d in "composition Settings" Advanced tab and also in fast preview settings. Everything OK and I can see no errors, but when I try to render one of video hive's projects, I see that CPU's  load is 95-100% but GPU's is only 0-2%. What is the secret? How to use GPU for project rendering?

    The GPU is used very little by After Effects.
    See this page for details of what the GPU is used for in After Effects:
    http://blogs.adobe.com/aftereffects/2012/05/gpu-cuda-opengl-features-in-after-effects-cs6. html

  • IPAQ how to use hardware buttons in java

    Hi,
    Does anyone know how to be able to use the iPAQs harware buttons and joystick in Suns Personal Java?
    I moved a Tetris applet i have written for PC's to the iPAQ and it works except for the arrow keys that i use to control it with.
    Any help would be greatly appreciated!

    I have the same problem.
    Does anyone know how to use the buttons of the iPAQ for your java applications?
    Thanks
    Hector

Maybe you are looking for