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

Similar Messages

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

  • 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

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

  • How to use sql query in java ?

    i don't know how to use sql query in java code.
    who can give me some advice?
    thanks

    http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/

  • How to use C-Structure in java applets

    hi alls,
    I want to use a struct model (struct in C++) in java applets. i know class is used in java applications. but, how can i convert in java applets?
    class renk
    int r;
    int gr;
    int b;
    import java.awt.Graphics;
    import java.awt.Color;
    import java.awt.Event;
    import java.applet.Applet;
    public class benek extends Applet
    final int n=10;
    int x[] = new int[n];
    int y[] = new int[n];
    int count = 0;
    renk clr[] = new renk[n];
    public void init()
    setBackground(Color.black);
    public boolean mouseDown(Event yordam, int xyer, int yyer)
    if (count<n)
    System.out.println("...");
    ekle(xyer,yyer);
    else System.out.println("Kapasite Doldu...");
    return true;
    void ekle(int xyer, int yyer)
    int r1 = (int)Math.floor(Math.random()*256);
    int gr1 = (int)Math.floor(Math.random()*256);
    int b1 = (int)Math.floor(Math.random()*256);
    clr[count].r = r1;
    clr[count].gr = gr1;
    clr[count].b = b1;
    x[count]=xyer;
    y[count]=yyer;
    count++;
    repaint();
    public void paint(Graphics g)
    it gives error message... how can � use struct model in java applets???
    if you help me i will be greatfull....

    � use import but it doesn't work.
    i add: import renk; or import class renk;
    how will � add import I assumed based on your initial post that the renk and benek classes were in the same file. Apparently you're saying they are not. So for another thing, make your renk class "public class renk", and add the "public" keyword to the 3 members of that class. Then if your code still doesn't see the "renk" class, it would just be that you don't have the directory that contains the compiled "renk.class" in your classpath.

  • How to use " toFront() " method in java application and in which package or

    How to use " toFront() " method in java application and in which package or class having this toFront() method.if anybody know pl. send example.

    The API documentation has a link at the top of every page that says "Index". If you follow that and look for toFront(), you will find it exists in java.awt.Window and javax.swing.JInternalFrame.
    To use it in a Java application, create an object x of either of those two classes and write "x.toFront();".

  • How to use XML / XPath in JAVA (in 1.4) which third part component to use?

    How to use XML / XPath in JAVA (in 1.4)
    I'm absolutely novice in XML
    but I need to query XML using XPath
    As I understand XPath become avalible only in Java 1.5
    But I use 1.4 (project requirement)
    Which third part component could you recomend?

    Can anyone help me with this XPath query
    I get result [title: null]
    import java.io.*;
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    import org.w3c.dom.*;
    import org.jaxen.*;
    import org.jaxen.dom.*;
    import org.jaxen.saxpath.*;
    import java.util.*;
    public class TestX {
         public void ggg() {
              try {
                   File f = new File("journal.xml");
                   DocumentBuilder docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
                   org.w3c.dom.Document doc = docBuilder.parse(f);
                   XPath xpath = new DOMXPath( "/journal/article/title" );
                   List result = (List) xpath.evaluate(doc);
                   System.out.println(result.get(0));
              } catch (Exception e) {
                       e.printStackTrace();
         public static void main(String[] args) {
              TestX tx = new TestX();
              tx.ggg();
    }journal.xml
    <journal>
        <article id="article.1">
            <title>Art1</title>
            <author>
               <first>Bob</first>
               <last>McWhirter</last>
            </author>
            <text>
            </text>
        </article>
        <article id="article.2">
            <title>Art2</title>
            <author>
               <first>James</first>
               <last>Strachan</last>
            </author>
            <text>
            </text>
        </article>
    </journal>

  • 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

  • How to use openjpa  + kodo in Java SE?

    Hi.
    We are developing J2EE application on Weblogic Server 9. For a part of application we should create unit tests that will be run in Java SE. How to use openjpa + kodo in Java SE?

    Hi,
    Try the EclipseLink JPA JEE5/JEE6 provider - it has been shipping as part of WebLogic Server since 10.3.1.0.
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    The following page has several SE, application-managed and container-managed EE example tutorials with source.
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebLogic_Web_Tutorial
    http://wiki.eclipse.org/EclipseLink/Examples/JPA
    The following forum will help you with any JPA specific issues.
    Forum: TopLink/JPA
    TopLink/JPA
    thank you
    /michael
    http://www.eclipselink.org

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

Maybe you are looking for

  • How do I stop aluminium wireless keyboard from waking computer from sleep?

    Hi My aluminium wireless keyboard wakes my computer from sleep, at random occasions. Sometimes after five minutes, other times up to four hours. Sometimes not at all. My iMac wakes up (annoyingly during the night, waking me up as well) and screen say

  • Update phone number keychain

    Hi there, I have iPhone 4s with ios8 and macbook pro retina with Yosemite. Lately I wanted to start using keychain with iCloud, but the number where keychain sends the verification code its still my old number, and even changing my number in settings

  • Know about ant-sca-deploy.xml

    Hi All, Can you please explain me the ant-sca-deploy.xml works, whcih parameters has to be passed ? for deployment

  • Unable to decode and import the select wav/mp3 file

    Hi, I've been TRYING to test the Text-to-speech feature in Captivate 4. Problem: "Unable to decode and import the select wav/mp3 file" each and every time I want to use it. Frustrating! I also tried importing sounds from the library, same problem. My

  • Error 4013 for iphone 4S when upload ios 7.0.2

    Hi, Not yet receive your support for error 4013. Please help asap. Thank you so much.