OpenJRE7 - Is there any hardware acceleration for OpenGL applets on browser ?

Hello,

I have OpenJRE7 on Ubuntu 11.10, how to make my applet on firefox opengl accelerated, i currently have framerate at only 1 fps.

My applet is hardware accelerated by opengl on eclipse and appletviewer, why it is not on firefox.

I have installed ‘openjdk-7-jdk openjdk-7-jre icedtea-plugin’ on my ubuntu.

I have ‘-Dsun.java2d.opengl=True’ on my html code, like i have it on my eclipse.

It’s best to simply avoid Java2D, since it’s generally slow, especially on Linux systems.

Give this flag a try:
-Dsun.java2d.xrender=true

Maybe it helps, you never know with these flags. On my machine, when enabling the OpenGL mode, it leads to empty screens, always.

Hi

You can use this flag in your applet too.

Do not use excessive calls to Thread.sleep or Thread.yield. You should only do this once at the end of all of your drawing, and then maybe only for about 10ms.

In my humble opinion, it is not mandatory and it can seriously decrease the frame rate. I found bad benchmarks using it several years ago, the frame rate was 30% lower because of that.