Trying the interpolation method, but the while loop may be executing too fast while no graphics are being painted...

Check out the difference between getTicks and nanoTime