tldr; I’ll need some folks to help test a new OpenGL 4.0 build, particularly on Windows and Linux, where hardware esp. GPU and drivers are more diverse.
I had been putting it off for a while, but recent bug reports about Nvidia drivers on Linux pushed me to make progress on OpenGL 4.0 compatibility.
As far as I can tell, hardware and drivers supporting OpenGL 4.0 have been shipped since 2012. (Even on macOS, with Apple threatening to deprecate OpenGL)
So I think we’re good. Performance definitely seems better, but I’ll have to find something really huge to truly benchmark.
My plan is to “flip the switch” tonight and we’ll have ~2 weeks before 2.0 to get in more testing.
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL core profile version string: 4.6.0 NVIDIA 580.119.02
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL version string: 4.6.0 NVIDIA 580.119.02
OpenGL shading language version string: 4.60 NVIDIA
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 580.119.02
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
GL_EXT_shader_group_vote, GL_EXT_shader_implicit_conversions,
The only one of these that worked was QT_QPA_PLATFORM=xcb. The others gave the same errors as before.
# Only force xcb if on Wayland and user hasn't set a preference
if [ -n "$WAYLAND_DISPLAY" ] && [ -z "$QT_QPA_PLATFORM" ]; then
export QT_QPA_PLATFORM=xcb
fi
In other words, based on user reports (not just @brockdyer03 but others on the GitHub issues) it seems as if this is a fairly common problem. You can find lots of apps with similar error issues with some Google searching.
If you, or others can get it working on Wayland, great, you can explicitly set QT_QPA_PLATFORM
But IMHO, the default for the AppImage or Flatpak is a user expectation that “it just works”
OK, but there were other issues that were fixed by moving to Wayland in the first place, which this would then undo. And undo them for all users, even though it’s fairly likely that the errors are caused by the NVIDIA drivers, which are infamously problematic under Linux, and affect only a small subset of Linux users.
Well, I would argue that it makes more sense to keep the default as Wayland and that NVIDIA users (assuming that it is indeed entirely an NVIDIA problem) can be the ones who set QT_QPA_PLATFORM=xcb, rather than regressing and making the experience worse for everyone else.
Or, alternatively, add a third condition to the if statement, so that it’s only set to use xcb if:
Oh no, there’s rush to change anything at all! I was wondering whether it was no longer even a dependency after the switch and whether I should stop building it for the Flatpak, that’s all.