hello, since i read in the other thread that System.currentMillis is better than nanoTime i tried to change my Timing class.
in order to get the time that has passed since the last frame in my gameloop, i use this code.
lastTime = curTime;
curTime = System.currentTimeMillis();
frameTime = (curTime-lastTime) / 1000.0;
(all variables are doubles, not longs)
unfortunately this seems to be very inaccurate. the results are like this.
where exactly is my problem? thanks!