6 ms·
> [...]but I can have 100+ GIFs playing at once with no impact to my CPU. That's... not entirely accurate. What do you think is rendering all those gifs to scr
by kec 7y ago
> [...]but I can have 100+ GIFs playing at once with no impact to my CPU.
That's... not entirely accurate. What do you think is rendering all those gifs to screen?
- kazinator 7y agoThe other seven cores that are not being identified as "my CPU".
- izzydata 7y agoNo "major" impact to the CPU. As insignificant as displaying however many frames exist in the gif as still frame jpegs at the same time.
- kec 7y agoThat's still not accurate. Load up 20-30 gifs on a page and I can pretty much guarantee you'll see your browser saturate a core.
- reaperducer 7y agoChallenge accepted. https://www.hampsterdance.com/classics/originaldance.htm https://www.hampsterdance.com/classics/originaldance.htm Just did it on my 2011 MacBook Air. Pushes all four cores up... about 15%.
- a_t48 7y agoDo things change if each gif is different?
- kec 7y agoTry again using a gallery page on a site like giphy which is going to be more representative of the use case op was talking about. edit: such as https://giphy.com/sports/2019-stanley-cup-playoffs https://giphy.com/sports/2019-stanley-cup-playoffs which seems to be entirely gifs if you view page resources in the debugger.
- MikusR 7y agoMost animated images on giphy are vp8 videos.
- izzydata 7y agoI don't believe these are actually gifs here. Similar to sites like imgur or twitter they convert it to something else to host for other people. Probably to keep bandwidth down. You can get to the actual gif, but you have to dig for it.
- asdfasgasdgasdg 7y agoGiphy manages to consume a much larger fraction of my modern desktop's CPU. I think it may have something to do with the small size and multiple copies of the gifs on the page you chose.
- aasasd 7y agoFor best results, use a Slack channel, or a forum reply page with an array of animated smileys.
- fucking_tragedy 7y agoSlack doesn't exactly have the most efficiently implemented front-end interface.
- aasasd 7y agoAh, yes, I didn't realize that Slack's platform reimplemented the whole graphics-formats-rendering stack. I naively thought that Electron and Slack inherited that from Chromium, but guess stupid me is way behind the times in this technicky stuff. Of course it's all in Javascript now, what was I thinking!
- bitwize 7y agoTo complain about GIF usage saturating your CPU when running an Electron app is to be penny-wise and pound-foolish.
- wwweston 7y ago> Just did it on my 2011 MacBook Air. Pushes all four cores up... about 15%. 15% of 4 cores ~ 60% single core capacity. That's distinct from saturating a core both qualitatively and quantitatively, which means the prediction is not a bullseye... but it's on the order of magnitude in impact, which means they're not entirely wrong.
- reaperducer 7y agoTrue, but it's an eight-year-old computer. And it wasn't exactly a computing powerhouse when it was released.
- simcop2387 7y agoTry this, http://www.voots.name/ http://www.voots.name/
- izzydata 7y agoThere we go. Try that with video formats.
- reaperducer 7y agoThat one actually did better. Two cores went up 20%. The other two didn't budge. Go figure.
- deleted 7y ago[deleted]