element-hq / element-hq/element-web
Requests 1ms Windows System Timer resolution
- Dominant language
- TypeScript
- Stars
- 13.5k
- Forks
- 2.8k
- PR merge metrics
- PR metrics pending
Description
### Steps to reproduce
1. Start the Element app (e.g. from start menu)
After some time Element will request a 1ms system timer and keep it indefinitely, even when minimized to tray.
### Outcome
#### What did you expect?
A chat application does not need a high resolution system timer.
(Unless maybe it's actively playing a video, but even then 1ms is likely overkill.)
#### What happened instead?
Element quickly requests a 1ms timer resolution for no apparent reason.
This prevents AMD Ryzen CPUs (even the latest ones) from reaching deep idle states, wasting energy (about 5±2 W, which is a lot, especially on battery).
### Operating system
Windows 10 22H2 64-bit
### Application version
1.11.96
### How did you install the app?
_No response_
### Homeserver
_No response_
### Will you send logs?
No
Contributor guide
Assessment
This issue has not been assessed yet.