Lurker News

Comments (230) 93 threads

Show all comments

Showing thread 2 of 93

zelphirkalt6 replies#
Could the CPU load be reduced? If I am only on the page, not even playing any music yet (probably because something is blocked), I get 1 core up at 100% CPU load. This can't all be for an animated background image, can it?
Deukhoofd2 replies#
Looks like it is, if I remove the 4 gifs stacked on top of each other CPU usage drops massively.
dubcanada#
It appears that every GIF frame is a Chrome paint (which makes sense) but a way to make the GIF static or turn off the GIFs would reduce paints down to basically nothing.
somebodythere1 reply#
If it's only a few frames you might be able to arrange them vertically in a PNG and animate background-position to get the same effect for cheaper.

Correction: you want to use transform to force creation of a new rendering layer, then when adjusting the rendered position of the element using transform will not cause a repaint.

Continue this thread — 1 reply

linuz901 reply#
Ouch you're totally right. I want to add an option to have static JPGs instead of GIFs. Already added to the backlog.
elithrar3 replies#
Video may be cheap, too: h.264 or WebM are relatively low cost on even reasonably modern devices.
moystard1 reply#
I would go for videos + options to go with static assets. You could pause background video playback when the tab is not active.
Siira#
My tests show the tab does not consume much when it is not visible.
dlivingston7 replies#
To go in the opposite direction, if you wanted to add an option for people fine with large CPU/GPU expenditure (i.e., if this were playing on a dedicated TV in an actual café), it might be fun to add a WebGL canvas and make lofi/vaporwave-inspired effects [0].

[0]: http://hands.wtf/rad

Continue this thread — 7 replies

jordache4 replies#
Video cheaper than animated gif?

Continue this thread — 4 replies

grae_QED#
I wonder if they're crypto-mining.
axaxs#
Same. I use a miniPC with a loud (by design constraints) fan when load is pegged. It ran like a jet engine on this site.
elwell#
Gotta pay for hosting with some monero mining
linuz90#
Hey, just wanted to let you know I've just pushed a "low-energy" mode that will remove some elements and effects on screen. On my Mac (MBP with M1 chip) it makes the webview go from 40% CPU to around 10-15%.

You can activate it by pressing "l".