clock_Init() was broken because it would initialize rxi_clock0
with QueryPerformanceCounter() and then call clock_UpdateTime().
So instead of getting an ever increasing value you would get a
fixed value determined by how long it takes to make a function call
between to QueryPerformanceCounter() calls.
(cherry picked from commit
c582cab1fb1708109f2aa26aab8eba189198e729)
OutputDebugString("No High Performance clock, exiting.\n");
exit(1);
}
-
clockInitialized = 1;
- (void)QueryPerformanceCounter(&rxi_clock0);
-
+
clock_UpdateTime();
}