High cpu usage by gnome-shell when moving mouse cursor

I noticed that when I moved my mouse cursor a lot the cpu usage by gnome-shell can get as high as 75%.

I am using the most updated gnome on Fedora 31. My desktop has 128gb ram, and its cpu is i9 9900K and its gpu is Geforce gtx 1660.

What should I do to solve this issue?

update: after I installed the most recent nvida drivers, the high cpu usage by gnome-shell is gone. however, the mouse cursor movement still gets sluggish from time to time. I am not sure if this is a hardware-related issue or a driver-related issue.

This is caused by the Nvidia drivers.

There’s a copr available that contains shell/mutter with some experimental patches mainly focused on performance, but with experimental means they haven’t been tested and breaks can happen.