Tdesktop: Very high CPU usage with GIFs sidebar visible

Created on 20 Dec 2017  路  10Comments  路  Source: telegramdesktop/tdesktop

Steps to reproduce

  1. Open the sidebar to the GIFs tab
  2. Ensure there are at least a few GIFs visible
  3. Observe CPU usage > 60-80%

Expected behaviour

CPU should not rise much at all

Actual behaviour

CPU is nearly pegged

Configuration

Operating system: macOS 10.13.2

Version of Telegram Desktop: 1.2.1

Used theme: night mode

Video (.zip)

Logs:
Tried to log but nothing appeared.


waiting for answer

Most helpful comment

Experiencing the same issue even when "somebody is typing" animation is shown, the same macOS 10.13.2 and Telegram Desktop 1.2.1

All 10 comments

Experiencing the same issue even when "somebody is typing" animation is shown, the same macOS 10.13.2 and Telegram Desktop 1.2.1

the same is with windows 10, too. if i have the gif sidebar visible and window is not minimized it takes >=30%. so it should be fixed by if window is not active.

On Linux machine get identical behavior, if I open chat with gif sidebar CPU usage jumps up to 100-120% in htop.

4.10.0-42-generic #46~16.04.1-Ubuntu SMP Mon Dec 4 15:57:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Telegram: 1.2.6

image

No, I think high memory usage is completely separate issue

Same on Linux. CPU stays high even when gif panel is closed.

Same on Windows 10, CPU usage at 100% even when sticker/gif panel is hidden but the gif section within the panel has been selected. When selecting the emoji or stickers section CPU usages returns to a reasonable amount.

Had this issue for a long time and still have in latest version. It happens only if smiles pane is open and GIFS tab activated but persists even if Telegam application is inactive and all animations are paused. It looks like it stop update the screen but continue to decode in memory.

this bug is still valid?

I cant reproduce now on linux with 1.8.15 from flathub.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

whywhyy picture whywhyy  路  3Comments

matteotumiati picture matteotumiati  路  3Comments

Mindstormer619 picture Mindstormer619  路  3Comments

ArmeF97 picture ArmeF97  路  3Comments

hosseinab picture hosseinab  路  3Comments