godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.4k stars 21.26k forks source link

Vulkan: Random background color at each frame in 3D editor on macOS (Intel GPUs only) #57303

Closed Nebulean closed 1 year ago

Nebulean commented 2 years ago

Bugsquad note: This issue has been confirmed several times already. No need to confirm it further.


Godot version

4.0 alpha 1 official

System information

MacOS 10.15.7, CPU: 2.7GHz dual core i5, GPU: Intel Iris Graphics 6100 1536 MB, Vulkan rendering backend

Issue description

When I rotate my view in the 3d editor, the background color changes at every frame. The following video shows that. (epilepsy warning)

https://user-images.githubusercontent.com/9269185/151323538-4b88f5a1-65da-4689-828c-7b6fb495b9ae.mov

Additional note: color always starts with white, and when I use another editor and then come back to the 3d editor, the color restarts to white as well.

Steps to reproduce

Just create a new project and go into the 3d editor

Minimal reproduction project

No response

alexruetz commented 2 years ago

Does not seem to happen on Macs with M1 Chip. Tried it with both Vulkan Backends.

Calinou commented 2 years ago

@Nebulean Can you reproduce this after switching the rendering backend to Vulkan Mobile in the Project Settings?

Nebulean commented 2 years ago

I switched to "Forward Mobile" in the project settings, if that's what you meant.

image

The results are fairly similar, the only noticable difference being the fact that the grid in the x-z plane changes color as well. (EPILEPSY WARNING)

https://user-images.githubusercontent.com/9269185/152408475-6690b64f-595c-4368-a894-e35db79d3ea2.mov

snougo commented 2 years ago

same issue on MacbookPro with intel GPU, OS version is 11.6.4

EMBYRDEV commented 2 years ago

Confirmed on 4.0 beta 2 MacBook Air 13, Early 2015 Intel HD 6000 macOS Monterey 12.2.1

It seems to be related to the skybox shader as setting the background mode to solid color solves the flickering issue but setting it to black actually shows a red background, brighter colors slowly get more correct.

snougo commented 2 years ago

so I guess I figured out what caused this issue, it seem the DirectionalLight3D, at least it looks like that

https://user-images.githubusercontent.com/64188282/162567259-37998a27-c298-4cee-b161-636004e41398.mov

mwillsey commented 2 years ago

I can reproduce this on alpha7, Late 2015 Macbook Pro, Intel Iris Graphics 6100.

Same fix; toggling preview sunlight fixes it.

snougo commented 2 years ago

this issue has been fixed

clayjohn commented 1 year ago

I can't reproduce this issue either on an early 2015 intel macbook Intel Iris Graphics 6100. So I will close as fixed.

If anyone can still reproduce this issue, please let me know