So it seems to me that there is a problem between nvidia and kwin: when I start a video for example from YouTube on Firefox GPU and i7 CPU consumption goes up a lot ; this is from top
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3534 fab 20 0 3148004 413604 281132 S 466,4 2,6 244:54.86 kwin_x11
3412 fab 20 0 25,0g 361808 291976 R 51,5 2,2 61:34.75 Xorg
32026 fab 20 0 4413360 1,3g 677780 S 24,6 8,1 11:12.85 firefox
$ vainfo
Trying display: wayland
Trying display: x11
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
and with btop I see that is a kwin_x11 --replace --> something is "broken", on the other hand these bugs seem to have been resolved: #6362 #5837 (if it's not a "pleasant" collateral effect)