-
-
Notifications
You must be signed in to change notification settings - Fork 21.7k
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
Toggling XR/Shaders/Enabled caused errors spam when using WorldEnvironment #84841
Comments
Still investigating but the root cause seems to be that our shader cache is getting confused and not triggering a recompile and it snowballs from there.
|
@clayjohn I'm gonne need your help with this one. I think I have a good picture of whats gone wrong and what part of the fix is, but I'm still in the dark of the root cause. So when you first run this project cleanly with XR off, we build our shader cache, all good. We're dealing with the code starting with There are 6 variants for this shader:
Variants When we turn XR shaders on, those variants are enabled. Now when we restart and reload it gets interesting. So here I'm wondering if the two disabled variants are causing an issue in how the cache is saved? Anyway, it goes worse from there. We're now in
So for this variant It gives two errors when trying to free the However, after this, everything snowballs. It now tries to compile these variants (as they weren't in cache) and fails. My guess here is that this is because the code changed with the new shader groups, that our code expects placeholder variants? Anyway couple of questions to sort out here:
I'm not familiar enough with the caching code so treading carefully here :) (haven't fully run through the scenario with XR off yet, but I'm guessing that once the cache gets messed up by the above, things just get worse) |
Did it came ou in 4.2 beta 6 ? |
Ah no, it needs to be tested before it can be merged and become part of a build. If you want, you can go to the PR, select the "Checks" tab, and you will find a dropdown on the right hand side of the page called "Artifacts". From this dropdown you can download a copy of Godot that includes this fix and test it. |
Fixed by #84883. |
Godot version
4.2 beta 5
System information
windows 10
Issue description
when choosing the option in the editor
project settings / XR - shaders / enable on , off
It works the frist time,
when choosing back to off ( default ) the entire screen stays black
Steps to reproduce
Minimal reproduction project
XR_shaderOption.zip
The text was updated successfully, but these errors were encountered: