Hi -
I noticed your plaint about having other questions without many answers, and found this thread that looks like it could use some attention. (Or maybe you’ve already found the answer?)
Unfortunately I don’t know anything about the gl code and can’t help you with your side question.
About the delta question:
What is the getTime() function using as it’s means of determining time? Do you know if it uses System.currentTimeMillis()? or System.nanoTime()?
The former can lead to weirdness as it’s accuracy depends upon the OS, and on a lot of Microsoft Systems this can mean a 15 or 16 msec granularity. The latter is much better for accuracy, though to get an answer in the proper range, you would need 9 digits. The (int) cast shouldn’t be a problem but the delta is getting close to where it go out of range. I think an int should be able to handle deltas of 2 seconds.
Curious about the 128 consistency. This occurs whether it takes 7 or 8 intervening 0’s.
128 / 7 = 18.4+
128 / 8 = 16
Suspiciously close to the clock time granularity with currentTimeMillis(), though I can’t quite get my head around a scenario that would cause the problem.
Hmmm…
Where is “lastframe” declared? Is it in the same class? In the same thread? Is there anything being done with it outside of this loop? Is it being altered by the Display functions?
I should learn some LWJGL.