-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Vulkan: viewport flashes white when being resized with volumetric fog enabled #63739
Comments
Related to #62794. Do you also have SSIL enabled in the Environment? |
Disabling SSIL doesn't seem to have an effect on the flashing |
I took a quick look into this, the problem is that, when the viewport is resized, the Fog buffers are deleted and then recreated, but in the meantime the sky/objects are drawn. Since the fog buffers are not initialized yet a plain white texture is used instead leading to the flicker. The solution will be to update the volumetric fog textures immediately after deletion/creation so there is no blip |
I can still reproduce this on 4.0.beta3. Quoting clayjohn from the Godot Contributors Chat:
The same approach can also be used to fix #56724. |
Still reproducible in 4.3, I just wanted to add that bottom panels chagne the viewport too and with the FileSystem being dockable (and in the future releases possibly other panels soo) and the shortcuts to open/close these panels this is getting quite prominent since the new workflow encourages fluidly opening and closing the panels, I've noticed this testing the PRs and the flashing gets really apparent and annoying ;0. |
@clayjohn I came down to using a double buffer. Here is my results: Before Fog.Before.mp4After Fog.After.mp4I did some testing by just saving the current state and reusing it without these buffers, but that just completely turned off the volume. As you can see: |
This looks great, but doesn't using a double buffer mean there's an additional frame of latency? This might not be a huge deal in most cases given volumetric fog is low-frequency data, but still. |
I tried a variety of things, but I ended up using the earlier suggestion to fix it. I just reused the previous fog buffer. It looks the same as the "After" video. |
Godot version
v4.0.alpha13.official [59dcddc45]
System information
Fedora Linux 36 (Workstation Edition), Vulkan Clustered, GTX 1660
Issue description
When the viewport is being resized with VL fogs enabled, it flashes white for about a single frame.
(Epilepsy warning)
2022-08-01_01-46-46.mp4
Steps to reproduce
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: