Tdesktop: Telegram permanently increases Windows timer resolution (causing reduced battery life)

Created on 29 Jun 2018  路  4Comments  路  Source: telegramdesktop/tdesktop

Steps to reproduce

  1. Open Telegram and let it run in background
  2. Run, from an elevated command prompt, "powercfg /energy"
  3. Open the generated report. Scroll to the "warnings" section and notice that Telegram has increased the timer resolution from 15.6 ms to 1 ms

Expected behaviour

Telegram should not permanently increase the Windows timer resolution, since this can lead to greatly reduced battery life (up to 25%, according to this and this)

Actual behaviour

Telegram permanently increases the Windows timer resolution, even when in background

Configuration

Operating system: Windows 10 (version 1803, build 17134.112)

Version of Telegram Desktop: 1.3.9

Used theme: Built-in night theme

Most helpful comment

By using software like Throttlestop, you can monitor the c-states of the processor when using Telegram Desktop. When Telegram is not running, the stats (in my case) look like this:
image
When launching Telegram and unlocking it, it idles ca. like this:
image
So the amount of percentage the CPU idles in C8 is much lower and it hits battery life hard.

All 4 comments

You can use this to monitor in realtime rather than keep generating powercfg reports:
https://vvvv.org/contribution/windows-system-timer-tool

Same issue with 1.4 in Linux: #4854

By using software like Throttlestop, you can monitor the c-states of the processor when using Telegram Desktop. When Telegram is not running, the stats (in my case) look like this:
image
When launching Telegram and unlocking it, it idles ca. like this:
image
So the amount of percentage the CPU idles in C8 is much lower and it hits battery life hard.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

Justinzobel picture Justinzobel  路  3Comments

JhonSane picture JhonSane  路  3Comments

Liudvikas picture Liudvikas  路  3Comments

FunctionalHacker picture FunctionalHacker  路  3Comments