[s]I had some problems with choppy rendering where the game would look like it was rendering a frame behind every other frame, mildly straining my eyes.
After some minutes of fooling around I might have solved the problem. What I did differently was using more precision in my game loop (using time in nanoseconds and not milliseconds, exchanging floats for doubles).
My question is, is this all a coincidence and I did not solve the problem and if so, what may be causing the problem?
I’m utilizing JFrame, triple-buffering & basically the loop everyone else is using.
Here is the entire Game class: http://pastebin.com/G9zSb73L
For clarification, the game window is not flickering with black & white images. I just found there are a lot of people having problems with that so I want to make it clear I do not have that problem. Keeping it safe here.[/s]
Upon launching my game, the canvas in my JFrame is unrendered for one frame. It’s basically a grey rectangle flashing before the game starts like every other game. Is there a way of avoiding that?
Here’s the code:
http://pastebin.com/yqqZZGbu