Skip to content
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

Godot 4.3 dev5 Weird floating plane mesh and black flickering screen. #78936

Open
NancokPS2 opened this issue Jul 2, 2023 · 7 comments
Open

Comments

@NancokPS2
Copy link

NancokPS2 commented Jul 2, 2023

Godot version

Godot 4.3 dev5

System information

Windows 10 x64 - Godot v4.3 dev5 - OpenGL (Compatibility) - dedicated. GPU: FirePro v4900. CPU: AMD Phenom II X6

Issue description

Untitled
The black flickering screen happens when i open any project. But the floating rectangle only does when using shaders/materials.
Setting a WorldEnvironment seems to briefly fix it but it returns shortle after.

At first i tought the rectangle moved at random, but it seems to only happen a short time after i move the camera. It snaps to a seemingly random position and deforms when it does too.

This is fixed after a reload, but this requires reloading the project EVERY time any change to materials is made.

Deleting .godot/shader_cache during runtime fixes it for a bit (maybe until next time the project boots up).
Disabling shader cache from the project settings doesn't do anything.

Steps to reproduce

  • Open project, see black flickering screen and other similar artifacts.

  • Create a MeshInstance3D
  • Add a Material of any kind.
  • Encounter wonky possessed plane.

Minimal reproduction project

N/A

@NancokPS2
Copy link
Author

In case anyone wonders. There's no AutoLoads and the shader code shown is what there is, the ending bracket got cut in the screenshot but that's about it.

@Calinou
Copy link
Member

Calinou commented Jul 2, 2023

The FirePro V4900 is a very old GPU with end-of-life drivers, so I wouldn't be surprised if OpenGL 3.3 can't work well on it. See also #78888.

4.0.x happens to incindentally work well enough on such old GPUs, but I doubt that will hold true throughout the 4.x cycle.

@NancokPS2
Copy link
Author

Yeah, i know it's old. Altho it can run games that require OpenGL 4.5 just fine so i can confirm that it has support for that.

@clayjohn
Copy link
Member

clayjohn commented Jul 3, 2023

Could you please upload an MRP so that other contributors can try to reproduce the issue? I haven't seen an issue like this before, but there could easily be something in your shader that is causing this behaviour

@NancokPS2
Copy link
Author

NancokPS2 commented Jul 6, 2023

Could you please upload an MRP so that other contributors can try to reproduce the issue? I haven't seen an issue like this before, but there could easily be something in your shader that is causing this behaviour

Sorry for the ignorance, but what is an MRP?

Also, the display still flickers without shaders/in new projects.

@Calinou
Copy link
Member

Calinou commented Jul 6, 2023

Sorry for the ignorance, but what is an MRP?

A MRP (minimal reproduction project) is a project that reproduces the issue. The project must run on its own but should not have unnecessary files included.

@NancokPS2
Copy link
Author

NancokPS2 commented May 1, 2024

I kind left this to rot here. But as far as MRP, this doesn't require anything in particular. Just adding a mesh and adding a new material of ANY kind will cause the bug.

I updated the bug to mention the latest version, because it keeps happening as of the latest versions, both stable and experimental. As well as a small work around.

It would seem as if Godot is unable to compile shaders during runtime, but it can do so when booting up. Any shaders compiled while loading the project will work, any attempt at recompiling them later fails.

@NancokPS2 NancokPS2 changed the title Godot 4.1rc2 Weird floating plane mesh and black flickering screen. Godot 4.3 dev5 Weird floating plane mesh and black flickering screen. May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants