kwin actually seems to be a pretty decently efficient wayland compositor
it can do direct scanout of overlay and underlay planes. firefox 144 uses this to get direct scanout for the html video player while the rest is composited
pretty cool shit. you can do video playback with zero CPU copies, and the compositor can take care of color management (that’s basically what mpv’s dmabuf-wayland does)