Open tim-rex opened 7 months ago
I think I know what the problem is here.
In wlEglGetConfigAttribHook
and wlEglChooseConfigHook
, it tweaks driver's attribute list to add EGL_WINDOW_BIT, but it needs to also tweak EGL_MIN_SWAP_INTERVAL and EGL_MAX_SWAP_INTERVAL the same way.
I'm finding that both
EGL_MIN_SWAP_INTERVAL
andEGL_MAX_SWAP_INTERVAL
are both reporting 0The EGL specification indicates the default swap interval should be 1 (vsync) and in my testing it appears that vsync is in effect.
I am able to succesfully disable vsync via
eglSwapInterval(0)
and more interestingly I am able to reenable vsync viaeglSwapInterval(1)
despite the reportedEGL_MAX_SWAP_INTERVAL
Anecdotally, it would seem the reported maximum swap interval is incorrectly reported as 0 rather than 1
The following eglConfig attributes are being passed if that is relevant
I'm using
eglGetPlatformDisplayEXT
withEGL_PLATFORM_WAYLAND_KHR
Fedora Linux 39 (Workstation Edition) Linux 6.5.11-300.fc39.x86_64 GNOME Version 45.1 nVidia Driver version 535.129.03
Output of eglinfo attached eglinfo.txt
Incidentally, eglinfo is seg faulting.. I'll raise a separate issue