I’ve been trying to get my webstartable game to use -Dsun.java2d.translaccel=true or -Dsun.java2d.opengl=true all night.
Afters hours and hours of trying I’ve figured that this just isn’t possible. Which is rather retarded since the jnlp syntax for java 1.5 clearly says that you can define or run the webstartable application with your own vm args. (given that you have signed your jar, which I did)
So, I’ve decided that Java Webstart is useless for Java2D games. :
Unless, anyone know of any tricks to do to get this to work?
I got Java Version 1.5.0 (build 1.5.0_09-b03).
My jnlp file:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.5+" codebase="http://www.stratzone.net/4k" href="starship.jnlp">
<information>
<title>Starship Invaders</title>
<vendor>Arni Arent (appel)</vendor>
<description>Defend against a Romulan invasion</description>
<description kind="short">Starship</description>
<icon href="starship_icon.gif"/>
<icon kind="splash" href="starship_splash.jpg"/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+" java-vm-args="-Dsun.java2d.translaccel=true"/>
<jar href="starship.jar"/>
<property name="sun.java2d.translaccel" value="true"/>
</resources>
<application-desc main-class="S"/>
</jnlp>
starship.jar is signed.