New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timer frequency #424

Merged
merged 3 commits into from Jul 28, 2016

Conversation

Projects
None yet
2 participants
@rpavlik
Member

rpavlik commented Apr 22, 2016

Apps are probably bumping the timer frequency already, but in case they aren't, we don't want to accidentally miss milliseconds. This patch adds an RAII class to increase/decrease the timer frequency, and hooks it up to the server idle mechanism (so we won't spin up the timer frequency if we're supposed to be idling).

Even @randomascii says it's OK, because VR is a special case where you can see milliseconds 馃槄 https://randomascii.wordpress.com/2016/03/08/power-wastage-on-an-idle-laptop/#comment-20184

@rpavlik rpavlik added the in progress label Apr 22, 2016

@randomascii

This comment has been minimized.

Show comment
Hide comment
@randomascii

randomascii Apr 22, 2016

:-)

Someday maybe Microsoft will give us a better way of doing accurate waits. Until then, yep, sometimes necessary.

:-)

Someday maybe Microsoft will give us a better way of doing accurate waits. Until then, yep, sometimes necessary.

Update LowLatency.cpp
Fix non-Windows destructor.

@rpavlik rpavlik merged commit e27409e into master Jul 28, 2016

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@rpavlik rpavlik removed the in progress label Jul 28, 2016

@rpavlik rpavlik deleted the timer-frequency branch Jul 28, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment