[Ardor3d][JogAmp] Performance issue under Ubuntu
Posted by Stefan on May 10, 2016; 12:41pm
URL: https://forum.jogamp.org/Ardor3d-JogAmp-Performance-issue-under-Ubuntu-tp4036694.html
Hi,
I am developing an Eclipse 4 RCP application using Ardor3D and JogAmp 2.3.2 (JoglSwtCanvas). I am experiencing a performance issue under Ubuntu.
When I load a 'big' geometry (11 mio. vertices; 3.6 mio. triangles) into my scene, it looks like something is slowing down the UI thread of the operating system. It seems like something is spending too much time during the frame update. The effect is that the mouse cursor feels slow, like it only gets updated with 15fps or so. Under Windows 7, the same code works without any problems.
My configuration:
- Ubuntu 12.04, 64Bit
- Nvidia Quadro K2100M
- Nvidia Driver 346.47
glxinfo | grep "OpenGL version"
OpenGL version string: 4.5.0 NVIDIA 346.47
This this the code of the game loop that triggers the refresh:
private void doUpdateFrame() {
final Display defaultDisplay = Display.getDefault();
if(defaultDisplay.isDisposed()) return;
defaultDisplay.syncExec(new Runnable() {
public void run() {
try {
frameHandler.updateFrame();
} catch (Exception e) {}
}
});
}
Sometimes the problem is less strong, sometimes it is unusable. Can anybody provide me a hint what the problem could be? I have a screen shot of a VisualVM Sampler session but could not append it to this post. Of course, I can provide further information on demand. Thanks!
Regards,
Stefan