JOGL speed

I have a problem. I have a program with a few triangles rotating… very slow. How can i do that jogl fullscreen uses hardware acceleration? (i dont know if is used).

I have a ati radeon 9200, and i tried with default GLCapabilities, and with:

GLCapabilities cap=new GLCapabilities();

    cap.setHardwareAccelerated(true);
    cap.setDoubleBuffered(true);          canvas=GLDrawableFactory.getFactory().createGLCanvas(cap);

, but in fullscreen it is very slow.

PD: In a small window this is very fast, but a game is usually in fullscreen mode.

Thx for reply

Can you print out the result of glGetString(GL_VENDOR), GL_VERSION, and GL_RENDERER in both windowed mode and fullscreen mode?

What operating system are you running on?

With this code (fullscreen mode):

System.out.println(this.getGL().glGetString(GL.GL_VENDOR));
System.out.println(this.getGL().glGetString(GL.GL_VERSION));
System.out.println(this.getGL().glGetString(GL.GL_RENDERER));

out strings are:

Microsoft Corporation
1.1.0
GDI Generic

if i put windowed mode, out strings are:

Microsoft Corporation
1.1.0
GDI Generic

the same. is it normal that jogl uses GDI Generic as renderer? Thx for reply.

Im using windowsXP

Wow, its great!, it run very fast now!. When i did see your post (GL_VENDOR, GL_RENDERER…) i begin to think. I have changed the opengl configuration of my videocard, from 16bits to 24bits, and now it run very well!. (Java3D crash with 24bits… JOGL whit 16bits with a ati radeon 9200)

Thx for your help. Your post has been very usefull for me. Thank you very much! :smiley: