Skip to content

Commit

Permalink
minor clarity on polling rate
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexFolland committed Jul 4, 2017
1 parent 9bc06de commit 25a89ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turbo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ int main()
<< "debug output" << endl
<< "------------" << endl
<< "target frame rate is " << targetFPS << " Hz" << endl
<< "polling " << targetGranularity << " times per frame (" << targetFPS*targetGranularity << " Hz)" << endl;
<< "polling timer " << targetGranularity << " times per frame (<" << targetFPS*targetGranularity << " Hz)" << endl;

QueryPerformanceCounter(&tick); // time since system start in CPU cycles, grabbed here for synchronization
tickFrames = (double)tick.QuadPart*targetFPS/(double)ticksPerSecond.QuadPart; // convert to number of frames at target frame rate
Expand Down

0 comments on commit 25a89ab

Please sign in to comment.