-
-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More fixes #169
More fixes #169
Conversation
Excellent! As always, I'm available on Discord if you need anything. |
ok, this is where i got today, please check "display retrieves gamma value on linux" . |
I just added a commit which tries to detect HDR on linux. i couldn't test if it works now, but if it does, it should work on windows as well and maybe it can replace the platform specific code |
i just built on windows, the gamma detection code seems to work so i added a commit to use it on both windows and linux. the HDR algo seems to work on linux but not on windows. On windows it seems that RHI_Context::device_physical is not yet initialized in Display::Initialization() so it crashes. I will check it again on linux (why is it initialized there? is it correct? ) |
Changes look good. Regarding get_hdr_capabilities(), ideally, Vulkan and DirectX should be wrapped under the RHI (Rendering Hardware Interface), allowing for a unified approach. However, I was planning to update SDL 2 to SDL 3 (which just came out). SDL 3 introduces SDL_GetDisplayHDRProperties(), meaning get_hdr_capabilities() can be removed in the future. Therefore, for now,, I suggest that if there's no API-specific easy way to retrieve HDR properties, simply set HDR to false, with a max luminance of 1000 and a min luminance of 0. You could also log a warning using SP_LOG_WARNING("Implement me") to ensure it’s not forgotten. Hope this helps! |
42b2409
to
8e531f2
Compare
i deleted the hdr related commit, noted the values proposed to use locally(or for a future PR). The rest should be OK now. |
8e531f2
to
644f61d
Compare
Some more changes i did while compiling on linux.
It is not ready to be merged but i do not want to delay merging staff because then i never finish them, so i prepared the commits and i will also add some more for these two remaining issues i 'll include later today: