gabr42 / gabr42/OmniThreadLibrary
InitializeGlobals in DSiWin32FU.pas changes global Windows timer resolution to 1ms indefinetely
- Dominant language
- Pascal
- Stars
- 513
- Forks
- 147
- PR merge metrics
- No merged PRs in 30d
Description
[TOTPWorker.Initialize](https://github.com/gabr42/OmniThreadLibrary/blob/5435d75f1dae81df162b86224883485071e9ea50/OtlThreadPool.pas#L916) in OTLThreadPull.pas changes global Windows timer resolution to 1ms
```
function TOTPWorker.Initialize: boolean;
...
Task.SetTimer(1, 1000, @TOTPWorker.MaintainanceTimer);
```
**This might be unneeded** and wastes too much energy
https://randomascii.wordpress.com/2016/03/08/power-wastage-on-an-idle-laptop/
https://randomascii.wordpress.com/2013/07/08/windows-timer-resolution-megawatts-wasted/
especially on the laptop on battery.
OTL is used in [RFindUnit](https://github.com/rfrezino/RFindUnit) Delphi addon which causes fast timer running until Delphi IDE is closed.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.