I’m having problems with the new hires timer on windows. Try the following webstarable application too see how it runs on your computer:
http://home.halden.net/tombr/timertest/timertest.php
The queryPerformanceCounter has been replaced with timeGetTime. It is suposed to have a 1 ms resolution. But it degrades if you only use Thread.yield in your main loop. The fix is to use Thread.sleep(1) instead. But atleast on my computer, Thread.sleep(1) will sometimes sleep for 14 ms instead. Wrecking havoc on the animation.
Use:
F1 to switch between sun.misc.Perf and the new lwjgl timer.
F2 to switch between Thread.yield() and Thread.sleep(1)
“+”, “-” to adjust the amount of triangles that are rendered. I’ve seen difference in behavior depending on the load.
If Perf/yield runs smooth and LWJGL/sleep(1) is choppy, then it is not working properly. You will se the mesured time the sleep took on the “pauseType” line. If it ever gets over 1 when sleep(1) is enabled, then it is also not working.