LWJGL / lwjgl3

LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL, Vulkan, bgfx), audio (OpenAL, Opus), parallel computing (OpenCL, CUDA) and XR (OpenVR, LibOVR, OpenXR) applications.
https://www.lwjgl.org
BSD 3-Clause "New" or "Revised" License
4.81k stars 640 forks source link

screen tearing on full screen app on linux #1017

Open goofyseeker311 opened 6 days ago

goofyseeker311 commented 6 days ago

Question

on rtx 3080 on ubuntu 24.04 LTS linux with proper nvidia drivers has screen tearing when in full screen mode with lwjgl opengl glfw window. when in windowed mode there is no screen tearing. no screen tearing in windows in full screen or windowed mode.

using typical swapinterval(1). any ideas why this is happening?

(side note: if you put all the different platforms native lwjgl opengl jars in the .jar file, it will not run on linux, but will run on windows. ie you have to make a separate jar for at least the linux distribution of the app, to get it running.)

(side note: also gpu (opencl) fps is somehow locked to 62-63fps, even opencl cpu mode is not locked to 62fps.)

goofyseeker311 commented 5 days ago

Also side question: hdr screen usage on lwjgl glfw opengl? assuming you already have either RGB10A2 or FLOAT4 pixel texture to draw to the screen on the opengl side. I would assume RGB10A2 would make 0-255 to be 0.0f-1.0f sdr range and everything 255-1023 to be hdr range. float would be direct 0.0f-1.0f sdr and all above 1.0f is hdr.