How do I specify in a jar that I want 2D hwaccel?

I just ran my app on windows, and it was just as slow as on OS X which leads me to believe that hardware acceleration is not on.
I thought it was default? Or do I need to specify something in my manifest to make it happen?

I know this topic was on some of the boards a while back, but I can’t seem to find the thread :slight_smile:

I don’t think you can do it from the manifest since I don’t think theres a way to set system properties.

You can set the acceleration properties as the first line your main() method which seems to work just fine.

Heres the guide for all the possible properties:

http://java.sun.com/j2se/1.5.0/docs/guide/2d/flags.html

Kev

The problem comes with Web Start, I think it initializes AWT before your code runs and so it is too late to set many of those properties.

Is there a bug about that filed already? I haven’t had much success searching the database today (timeouts).

I just thought that hardware blitting/page flipping was enabled automatically on platforms that supports it?

Anyway to log bufferstrategy to see what I’m getting?

Some acceleration is not enabled by default because of graphics driver issues and that sort of thing.

But I should get hardware blitting/page flipping on a PC with GeForce4 mx right?

Absolutely, but not on OSX.

Kev

Hmm. That’s odd. My PC performance was worse than OS X :slight_smile: