Login  Register

Re: Poor performances on Linux Ubuntu unless desktop effects are disabled

Posted by gouessej on Jul 24, 2014; 8:30am
URL: https://forum.jogamp.org/Poor-performances-on-Linux-Ubuntu-unless-desktop-effects-are-disabled-tp4032647p4032649.html

Hi

At first, we only maintain Java3D 1.6.0, we won't give you any help if you use older versions as I explained here.

Secondly, please give much more information about your hardware. Mentioning your operating system isn't enough. Some Java3D users are under Fedora, Red Hat, Debian, ... I'm under Mageia Linux 4 and Java3D works flawlessly. Your operating system is probably not the culprit. Which version of OpenJDK / Oracle Java do you use?

Thirdly, just run glxgears with Unity + 3D desktop and then with Unity 2D. You'll see that your problem has nothing to do with JOGL in particular but rather with OpenGL use with 3D desktop like in this case:
http://ubuntuforums.org/showthread.php?t=2002029
http://askubuntu.com/questions/68379/slow-and-laggy-animations

and it should have been fixed:
http://www.phoronix.com/scan.php?page=article&item=ubuntu_unity_512&num=1

GNU Linux in general isn't to blame. I use 2 very old graphics card at home, ATI Radeon 9250 Pro AGP and a crappy Intel chipset sold in 2007, it works smoothly except with WebGL that blacklists the former but not the latter and it is a lot slower than Java3D, Ardor3D and their "friends".

Please try to reproduce your problem with OpenGL applications and utilities not relying on JOGL and Java3D in order to confirm there is effectively a problem with OpenGL and 3D desktop under Ubuntu.

You remind me that I have to improve my tutorial. When you're under Windows, you should use some JVM options to disable the Direct3D pipeline.

You aren't accurate enough, there should be many possible explanations. In my humble opinion, as you have a problem even with a simple rotating cube, I think that there are a couple of things wrong on the machines you tested, maybe your drivers under Windows need an update and you have to use the manufacturer's drivers instead of the crappy OpenGL emulation through Direct3D (Microsoft GDI renderer).

Please give us this info about each machine you use for your test:
- version number of the operating system (indicate whether you use unofficial patches, use uname -a under GNU Linux)
- version number and name of the OpenGL driver
- manufacturer (ATI, Nvidia, Intel, Matrox, ...)
- information about the JVM (java -version)

Please try to run some simple JOGL applications and enable all logs:
http://jogamp.org/wiki/index.php/Jogl_FAQ#Detailed_Debug_Log

Best regards.

Edit.: You can use this simple example:
http://en.wikipedia.org/wiki/Java_OpenGL#Code_example
Julien Gouesse | Personal blog | Website