-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent precise timers from being used when unnecessary #18555
Conversation
Maybe add something like this in the commit message?
Just to have enough context for the future. |
OK. |
The implementation of QTimer::singleShot() uses Qt::PreciseTimer if interval is less than 2 seconds. This isn't mentioned in the docs. Qt::PreciseTimer increases the system's timer resolution which negatively affects power consumption. PR qbittorrent#18555. Closes qbittorrent#18350.
Can you elaborate the power consumption issue and give some links? |
You can find something in the Issue mentioned in OP. |
The meaning is to adjust wake up all types of timers at the same moment of time to reduce kernel scheduler switches. It does not much related particularly to |
|
The implementation of QTimer::singleShot() uses Qt::PreciseTimer if interval is less than 2 seconds. This isn't mentioned in the docs. Qt::PreciseTimer increases the system's timer resolution which negatively affects power consumption. PR qbittorrent#18555. Closes qbittorrent#18350.
The implementation of QTimer::singleShot() uses Qt::PreciseTimer if interval is less than 2 seconds. This isn't mentioned in the docs.
Qt::PreciseTimer increases the system's timer resolution which negatively affects power consumption.
Closes #18350.
Supercedes #18475.