Caprine: GIF: consumes a lot of CPU

Created on 12 Aug 2017  路  5Comments  路  Source: sindresorhus/caprine

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

Most helpful comment

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?

All 5 comments

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.

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?

img {visibility:hidden} perhaps.

Also I think muted videos keep playing even if Caprine is hidden or minimized.

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

By default, rendering is paused on macOS if window is not visible, or minimized in other OS. The behavior is described in detail here.

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bsucker98 picture bsucker98  路  3Comments

ChristianKlee picture ChristianKlee  路  4Comments

sindresorhus picture sindresorhus  路  4Comments

petersng picture petersng  路  3Comments

Vexorify picture Vexorify  路  3Comments