Kwin_x11 lagging/stuttering whole system

Hi,
I’m using KDE Neon with Plasma 6.1.3 and kwin_x11 compositor.
When I’m using some applications (Eg. Webstorm), system animations are very laggy and audio gets choppy.

When I disable compositing with Alt+Shift+F12 or do kwin_x11 --replace, it stops.

I tried installing other Linux distro with KDE on second drive, and there it was doing this stuttering whole time, even without anything running.

I use drivers from nvidia.

System spec:
I5-8400
NVIDIA RTX 3060
24GB RAM

Thanks,
Filip