This is why it pays out to turn on "Paint Flashing" [1] in the web console, even if just from time to time.
--
1: https://web.dev/articles/simplify-paint-complexity-and-reduc...
--
1: https://web.dev/articles/simplify-paint-complexity-and-reduc...
I used to work on a set top box app, and for some of the features, replacing the whole page with a single canvas was the only way to get steady FPS.