I’m not an expert, and don’t have an amdgpu myself, but a few things that might be worth checking. If you’re passing mpv a url, video playback could be slow for a few reasons:
- The network is struggling to fetch the video data fast enough
- The hardware accelerated video decoder isn’t working for some reason
- The GPU driver is struggling with the quantity of pixels (often because it’s failed to load the driver and fallen back to software rendering
Some things you might try in order to narrow down the issue:
- Download a video and run
mpv
with the local file to determine whether the network is part of the problem (youtube-dl
can download youtube urls). - Run something like
glmark2
and see how it performs. It should print some driver information in the console and show some animated test graphics in a window. - Look in
/var/log/xorg.log
(I think that’s where it lives on NixOS?), and see if you can determine which driver X actually chose to use.