Sodium Extras adaptive vsync support
When this mod is installed, the "adaptive" option for vsync on sodium extras is absent. I have a freesync display and am unable to use this mod and also have adaptive sync.
W/o wayfix:
w/ wayfix:
The adaptive option for VSync is from Sodium Extras, not Sodium. https://github.com/FlashyReese/sodium-extra-fabric/blob/1.21/dev/common/src/main/java/me/flashyreese/mods/sodiumextra/mixin/sodium/vsync/MixinSodiumGameOptionsPages.java#L47
The reason why Adaptive VSync isn't there, is because Wayland GLFW doesn't support GLX_EXT_swap_control_tear and WGL_EXT_swap_control_tear whilst X11/XWayland supports GLX_EXT_swap_control_tear and WGL_EXT_swap_control_tear (nvidia only).
https://github.com/FlashyReese/sodium-extra-fabric/blob/1.21/dev/common/src/main/java/me/flashyreese/mods/sodiumextra/mixin/adaptive_sync/MixinWindow.java#L18
Forcing Sodium Extras to use Adaptive Sync logs that exact message in the console:
In my own testing:
Wayland:
X11/XWayland:
WGL_EXT_swap_control_tear is not supported because I don't have an NVIDIA GPU
Oh thanks for the correction! Interesting find. So it's an upstream GLFW issue then. Thanks!