Very bad performance under Vista

Hello,

I just changed my computer and am now under Windows Vista.
The application I am developping with JOGL has now very low performance. GLCanvas and GLJPanel are now very slow.
Moreover, I used jre 1.5 and when the jvm launches, the aero in Vista disables… probably the reason why I am having poor performance.
When I use jre 1.6, Aero is still enabled, but i still have slow performance.

Could you please tell me why I have so poor performance (I read that it was because in Vista, Opengl is not really supported, and it used some emulation in DirectX)??
What can i do to improve my performance? Will there be another versionof the jvm more compatible with vista? Or another version of JOGL?

I am using the latest build JSR231 1.1.0.

Another problem I am having in Vista (whereas i don’t in XP) is a line of code that doesn’t work anymore :
gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_S, 0x812F);
I tried to use GL.GL_CLAMP_TO_EDGE instead of 0x812F, but still don’t work…

Thanks for your help.

What graphics card do you have? Are you running your vendor’s latest drivers? As far as I know only NVidia’s OpenGL support on Vista is reasonably reliable at this point, due to Microsoft’s waiting until the last minute to allow OpenGL vendors to supply ICDs. You may be falling back to Microsoft’s software OpenGL 1.1 implementation.

You probably need to specify -Dsun.java2d.noddraw=true on the command line to avoid having Aero disabled.

Hello,

thanks for the answer.
My graphic card is a 256MB ATI Radeon X1300PRO
The driver was 8.31.100.0 dated of 2006/10/24
I upgraded it to the latest one that is 8.360.0.0 dated of 2007/03/14
and I have now GOOD PERFORMANCE ;D

It also solved my problem of the gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_S, 0x812F); ;D

Moreover, when I specify -Dsun.java2d.noddraw=true on the command line, it avoids having Aero disabled. ;D

Another question :
My computer is :
Intel® Core™2 CPU 6400 @ 2.13GHz 2.13GHz
OS Vista 32 bits
Does my processor mean that it could support an OS Vista 64bits? And if I had an OS Vista 64bits, would I have to use jogl-1.1.0-windows-amd64.zip instead of jogl-1.1.0-windows-i586? Would i have better performance?

Thanks.

Not sure.

No, the performance would likely be the same or lower. There’s currently an average 10% performance cost going from the 32-bit HotSpot JVM to the 64-bit HotSpot JVM due largely to the increased size of pointers in the Java heap. This is the price for getting access to a much larger heap. In general if you don’t need to access more than a few gigabytes of data in your application you should use the 32-bit JVM.

If your performance was good before moving to Vista there actually isn’t a whole lot you can do besides update your drivers regularly in hopes of an improvement. And at the moment both vendors are still working on improving their drivers, Nvidia is even facing a class action lawsuit over the issue, http://hardware.slashdot.org/article.pl?sid=07/02/03/0110248.

And TagadaX, I do believe Core 2 is a 64-bit capable processor.

And like Ken said 64-bit currently costs some performance, but as video card drivers mature and the VMs mature it’s entirely possible that situation could reverse itself. Especially once they get optimized to take advantage of the extra registers, 2x GPRs and 2x SSE registers sure will be nice.

We are developing a large scale traffic simulator for research purposes. We are using java/JOGL in Windows environment.

We are in the process of buying a new workstation for our lab. Is it a right decision to go with intel 64 bit quad core processor with Windows Vista? Would we expect any problems running JOGL on such platform?

You’d have no more trouble with JOGL in that situation than you would with any other programming language’s binding to OpenGL. Most, if any, of the issues you’d have would actually reside in the video card’s drivers.

Sure. I have differences ot 1 to 20 in performance with the right driver. The default drivers supplied by Vista are bad. If you download correct drivers from ATI or NVidia, performance will boost.

Please, as you own Microsoft Vista, could you test my game with your computer? (http://membres.lycos.fr/javalution/tuer.php)

Your performances are now better but is it slower than when you used XP ?

Hello. My JOODE examples broke for no reason today. They were working yesterday. I use Xith as my renderer which defaults to JOGL. The culprit was my windows vista automatic update. The symptom was a popup saying the Java SE program has stopped working (no stack trace). Just thought I would mention this problem to you, I have no idea what the underlying reason was. It was one of :-

  1. Update for Windows Vista (KB929735)
  2. Definition Update for Windows Defender - KB915597 (Definition 1.20.2734.4)

Rolling back solved my issues.

Tom

Please report this issue to Microsoft. It’s unlikely there is anything we can do about this in JOGL and it’s very bad that they’ve broken some Java apps.