Simple rendering produces minor stutter
- by Ben
For some reason, this game loop renders the movement of a simple rectangle with no stuttering.
double currTime;
double prevTime = System.nanoTime() / NANO_TO_SEC;
double FPSTIMER = System.nanoTime();
double maxTimeDiff = 100.0 / 1000.0;
double delta = 1.0 / 60.0;
int processes = 0, frames = 0;
while(true){
…