I know that Discord uses Electron which is hot dogshit but how the FUCK does animating a color gradient that follows the mouse gobble up an entire cpu core?

Also the cpu usage and lag of streaming video has increased massively in the last couple months. The fuck did they do?