RE: [GD-Windows] More timer fun!
Brought to you by:
vexxed72
From: Jon W. <hp...@mi...> - 2002-09-02 18:57:58
|
> and that we can apparently fix this within our games with enough work, > Microsoft should integrate fixes for this into their current and > past OS's. QueryPerformanceCounter() is slow enough already (on the order of 1 microsecond because of the bus transaction involved). Fixing it is decidedly non-trivial, and, at a minimum, requires doubling the cost of calling it. I think most people who use these functions would rather not take the additional cost hit. RDTSC doesn't skip, that I've heard of. It's absolutely the right thing to use for profiling and similar measurements. The only weakness of it is that it may not measure wall-clock time accurately on laptops (that use TimeStep CPUs). I'm prepared to live with that on a local scale, and to use an unholy heuristic trio of QPC/timeGetTime()/RDTSC for keeping track of wallclock time on a global scale. Cheers, / h+ |