Java performance question

hi,

i started opengl-programming in java using jogl, before i only used C++.

my first program wath the SimpleJOGL application of the jogl demos, that only draws a triangle and a square on a 640x480 screen. to that demo i added a fps-counter to check the performance.

it only runs at about 180 fps, this seems very little for me, an similar program written in C++ will get aubout 1800 fps on my computer :o

is this a java issue or do i have a misconfiguration or something like that ???

thanks,
kapman

have you disabled vsync?

this demo enables it by default:
// Enable VSync
gl.setSwapInterval(1);

get here around 1600fps with the client JVM on a ATI X1600 mobile.

180hz would be a bit too high as refresh rate. It’s unlikely that it’s vsync related.

Maybe it’s software rendering?

definitely: no :slight_smile:

who knows? My old CRT had 120hz. The refresh rate also grows if you lower the resolution (like 640x480 full screen rendering).
(but of course software rendering could also be the reason)

that’s what i dream of :wink:

indeed, software rendering was enabled. why this is enabled by default? :-\

now it is faster, but not hat much. probably my computer is just too old :wink:

kapman