framerate oddities
My game uses a JFrame with a JPanel in it.
In my game loop I pretty much do three things: I update the game state, I get input from the user (non-blocking), and I draw the game state to the Graphics object of the JPanel (using double buffering buffer strategy)
Everything works fine. On my AMD Athlon1600 the main game loop loops 57 to 58 times per second. On my frieds Athlon2600 (or something like that) the game loop loops over 200 times per second... that's not the weird part.
Back on my machine, after 27 seconds (always at exactly second 27) the frame rate jumps from 58 to 171 .. then from second 28 and on it ranges from between 250 and 450 game loops per second. Which is pretty darn good.
I've looked through all my code and I don't see what is happening after 27 seconds that would change my frame rate like that. I haven't checked on my firend computer yet to see if a similar thing happens. Is this something to do with using the JFrame and JPanel?
It's a curious thing that I haven't noticed happen before in any of my coding. Just wondering if anyone knows what could be doing it..
- J E May

