question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GIF: consumes a lot of CPU

See original GitHub issue

When I have a channel open with a gif rendered, Caprine and Caprine Helper consumes all my CPU. It stops as soon as I switch channel or when I scroll until it is not visible.

Mac OS: 10.12.6 Caprine: 2.6.1.548

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
davidwessmancommented, Aug 13, 2017

Rendering GIFs takes a lot of CPU. It’s a very inefficient format and Chrome is not very good at rendering it efficiently either. Might improve when we upgrade Electron. Not really much we can do about it here.

Okay, good to know - is there anyway to “pause” them when windows is not focused?

2reactions
Etherytecommented, Sep 18, 2017

One option would be to implement a solution similar to what the mobile client does - replace GIFs with static images and only show the original when the image is hovered.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Each visible animated .gif takes up an entire CPU core #1997
If 1 animated gif is visible in the scrollback, it will continuously use 100% of a CPU core. If 2 are visible, it...
Read more >
Java gif image consuming CPU and memory - Stack Overflow
Now i realyzed that the GIFs consume a lot of CPU (near 100% in some cases), and the memory used continued to increase...
Read more >
165750 - Some antimated GIFs still cause 100% CPU load ...
Indeed, the cpu usage is insane for many animated gifs. I just noticed my cpu usage spike to 100% on 1 core simply...
Read more >
Animated GIFs causing high CPU consumption and bad ... - Jira
Having animated GIFs in the chat or either as the avatar picture causes high CPU usage in HipChat, which can affect the performance...
Read more >
Imgur GIFs causing high CPU use : r/VFIO - Reddit
Just having Imgur open causes every core to sit between 60-80% CPU use. The more moving pictures, the more CPU use. I was...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found