WayFix icon indicating copy to clipboard operation
WayFix copied to clipboard

Sodium Extras adaptive vsync support

Open Titaniumtown opened this issue 2 years ago • 2 comments

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: image

w/ wayfix: image

Titaniumtown avatar Oct 19 '24 04:10 Titaniumtown

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: image image

In my own testing: image

Wayland: image

X11/XWayland: image WGL_EXT_swap_control_tear is not supported because I don't have an NVIDIA GPU

not-coded avatar Oct 19 '24 12:10 not-coded

Oh thanks for the correction! Interesting find. So it's an upstream GLFW issue then. Thanks!

Titaniumtown avatar Oct 19 '24 16:10 Titaniumtown