I’m wondering, are there certain types of computers or video cards that JOGL just doesn’t like?
On this computer I’m on right now, most jogl and lwjgl stuff runs just fine, all graphics in tact and more than adequate speed.
On my other computer, though, it’s rare if I can get either lwjgl or jogl to operate at a playable rate (unless it’s a turn based game, like Conquer, which still had a slow framerate on the mouse).
It has:
Windows 98 (XP would kill it)
850 mhz Athlon processor
NVidia TNT2 card (worried about this)
192 mb ram
I threw together a pathetically simple graphics test in eclipse, which just draws two stationary points and one animated one (swings from left to right based on a sine calculation). Every 60 frames it sends an output line giving the total frame count and the fps for the last 60 frames, as shown below.
public void display(GLDrawable draw) {
count++;
GL gl = draw.getGL();
gl.glClear(GL.GL_COLOR_BUFFER_BIT);
gl.glBegin(GL.GL_POINTS);
gl.glVertex2i(100, 50);
gl.glVertex2i(100, 130);
gl.glVertex2i(150 + loc, 130);
gl.glEnd();
gl.glFlush();
if (count % 60 == 0){
time2 = System.nanoTime();
System.out.println("Count=" + count + " at "
+ (int)(60/((double)(time2 - time1)/1000000000)) + " fps");
time1 = System.nanoTime();
}
}
So, if I take this, and stick it in a 400 by 400 frame, I get about 130 fps. But if I make it a 800 by 800 frame, it suddenly drops to 30 fps, and full screen (1024 by 768) is a mere 20 fps. I know it’s a slow computer, but displaying three dots at 20 fps??
Have I done something stupid, or is my computer just slow?