Re:Show HN: Lofi.cafe
by Deukhoofd on Wednesday April 14, 2021 @09:05AM
(#26806503)
Looks like it is, if I remove the 4 gifs stacked on top of each other CPU usage drops massively.
[ Parent
| on HN ]
Re:Show HN: Lofi.cafe
by somebodythere on Wednesday April 14, 2021 @09:16AM
(#26806617)
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.
Ouch. What's wrong with APNG?
Re:Show HN: Lofi.cafe
by somebodythere on Wednesday April 14, 2021 @08:10PM
(#26814726)
I figure it will have the same problem as GIF which is that each frame triggers a repaint.