Easy way to get good (4k 60fps) OBS encoding performance with AMD GPUs

Gstreamer + gamecapture is doing much better than VAAPI + Pipewire Capture (current OBS default).
For desktop capture Pipewire is really good, but a little inferior to gamecapture for games, at least with my RX 580.
I showed the comparison on my blog (in PT-BR)