[Xorg + NVIDIA] [Wayland + NVIDIA] 144hz monitor locks to 60hz in dual monitor setup
I am using mutter 3.32 with the revert patch from AUR https://aur.archlinux.org/packages/mutter-781835-workaround. Mutter seems to only render at 60 fps when my second 60hz monitor is enabled. In every configuration panel my main monitor is set to 144hz and the second at its maximum of 60hz. However, it is very clear that it renders at a maximum of 60 fps because of 2 things,
- I used to be able to set fps to 144 hz with the CLUTTER_DEFAULT_FPS=144 environment variable.
- When i disable the 60hz monitor everything becomes extremely smooth on the 144hz monitor. In Xorg this is slightly harder to notice because the cursor is actually still at 144hz even though Mutter renders at 60hz. I assume that this is because Xorg renders the cursor on top of Mutter. In wayland even the cursor locks to 60hz on the 144hz monitor when the 60hz monitor is enabled.
My hardware is:
- CPU: Intel i7-7700K
- GPU: GTX 1080
- Mem: 16gb
I highly doubt that hardware is the issue. I have a hunch that this is caused by mutter attempting to sync to hardware refresh rate, but it chooses the first one it sees. My 60hz monitor would likely be earlier on the list because it uses a DVI connector. If this is the case, I would suggest iterating through all monitors and syncing to the one with the highest refresh rate.