Frequent lags and loss of smoothness in KDE Plasma with dual monitors on NVIDIA 3070 Ti (Wayland/X11)

I tried running OBS Studio and recording the screen, checking the smoothness of the desktop. Surprisingly, it really works — the smoothness is greatly improved during screen recording. But as it seemed to me, there are still small problems when resizing windows (perhaps seen in the example of the settings window).
I uploaded a video of the moment while I was checking the smoothness, in case you’re interested: