High res timer

Started by CaptainJester, August 02, 2005, 01:37:38

Previous topic - Next topic

CaptainJester

In org.lwjgl.Sys, the method getTimerReesolution used to return a true value.  I looked at the source and noticed that it was changed to return 1000 all the time.  Is there another way to get the resolution?  Or is there a different timer set up now?
The problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities.  We need men and women who can dream of things that never were. - John Fitzgerald Kennedy(35th US President)
8)

Matzon

The problem is that we are now using another timer than QueryPerformanceCounter in win32, because it was totally broken on speedstep and multicore CPUs

CaptainJester

Thanks.

Damn, I need that high resolution.  I guess I'll look at GAGE to see if they have it that high.
The problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities.  We need men and women who can dream of things that never were. - John Fitzgerald Kennedy(35th US President)
8)

princec

I think I might revisit this bit of code and see if we can get it to use QPC whenever possible.

Cas :)