Re: JOGL Linux Hardware Acceleration
Posted by Stefan on Apr 15, 2011; 12:10pm
URL: https://forum.jogamp.org/JOGL-Linux-Hardware-Acceleration-tp2792228p2824314.html
Well, I tried to use the Gears demo that comes with JOGL, and it still runs very badly (as opposed to the Gears demo I download as a webstart application). This is my main method:
public static void main(String[] args) {
GLProfile.initSingleton(false);
GLProfile glp = GLProfile.getDefault();
Gears gears = new Gears();
GLCapabilities caps = new GLCapabilities(glp);
GLJPanel panel = new GLJPanel(caps);
panel.addGLEventListener(gears);
FPSAnimator animator = new FPSAnimator(panel, 60);
JFrame frame = new JFrame("Gears");
frame.setIgnoreRepaint(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
animator.start();
frame.add(panel);
frame.setVisible(true);
frame.setSize(512, 512);
}
This is the info I get from running this demo:
Gears: Init: AWT-GLJPanel[ jogamp.opengl.GLPbufferImpl]
Chosen GLCapabilities: GLCaps[0x95 0x6b: offscr, rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/8/0, one, mono , hw, GLProfile[GL2/GL2], pbuffer [r2t 0, r2tr 0, float 0]]
INIT GL IS: jogamp.opengl.gl4.GL4bcImpl
GL_VENDOR: Tungsten Graphics, Inc
GL_RENDERER: Mesa DRI Intel(R) Sandybridge Mobile
GL_VERSION: 2.1 Mesa 7.10.2
gear1 list created: 1
gear2 list created: 2
gear3 list created: 3
Gears: Reshape 0/0 502x482
Gears: Reshape 0/0 508x487
Gears: Dispose
Gears: Init: AWT-GLJPanel[ jogamp.opengl.GLPbufferImpl]
Chosen GLCapabilities: GLCaps[0x95 0x6b: offscr, rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/8/0, one, mono , hw, GLProfile[GL2/GL2], pbuffer [r2t 0, r2tr 0, float 0]]
INIT GL IS: jogamp.opengl.gl4.GL4bcImpl
GL_VENDOR: Tungsten Graphics, Inc
GL_RENDERER: Mesa DRI Intel(R) Sandybridge Mobile
GL_VERSION: 2.1 Mesa 7.10.2
gear1 list created: 1
gear2 list created: 2
gear3 list created: 3
Gears: Reshape 0/0 1280x775
Gears: Dispose