Your claimed GPU usage seems really high for a simple spinner, even considering the CPU is pretty old. I wonder if there's some other problem going on with your setup.
I don't think so. This is just what happens when you redraw the screen. Doing it 30x more frequent than needed costs more, no matter if it's only 1 pixel. This problem is not isolated to me or to just one machine. Check out the chromium bug about the tab loading spinner, for example. It is a "simple" spinner as well. Or the Zed editor, which spams screen redraws even when nothing changes at all, so it has high GPU usage for still picture.
It should not cost a visible fraction of CPU/GPU to update a little sprite even at 30fps.
I miss the 1 update per second animations of ye olden times, even if it would be ugly as sin in a modern product.
I'm on mobile so I'm not able to check, but can the will-change and contain attributes reduce the cost?
1 reply
Avoiding unnecessary browser repaint of the rest of the page is a basic technique and often already done correctly. If people don't do that, it's just ultra-bad. But do really have the CPU/GPU go idle, you need to not use them; the only solution to that is to show still images, aka reduce FPS.
