godotengine / godot

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

Rendering glitching (memory leak?) #76576

Open fkeyzuwu opened 1 year ago

fkeyzuwu commented 1 year ago

Godot version

4.0.2 stable

System information

Windows 10, Forward+, 1060GTX, latest nvidia driver ver 531.68

Issue description

I have been having rendering related full screen glitches lately while running any Godot 4.x projects. Both for my projects and others in the editor and in exported games. Eventually the editor itself started glitching. I didn't leave my Godot projects open so I'm guessing that means that the memory leak continues between sessions. I restarted my pc and it stopped happening.

Its worth noting I don't close my computer often so that's why I think it got progressively worse, and why I think its a memory leak. I also tried updating my nvidia driver from the previous one that was around 8 months old to the most recent one, with no changes really.

This also didn't happen every time i started a godot project, at the beginning it was only about half the time.

Might be related to #75613 .

Picture related: image

Pictures from TestSubject06#4319 on discord having a similar issue, on OS level: image image

Steps to reproduce

Maybe let your computer run for a few days, open and close Godot a bunch of times and wait for something to start happening? :D

Minimal reproduction project

N/A

Calinou commented 1 year ago

I didn't leave my Godot projects open so I'm guessing that means that the memory leak continues between sessions. I restarted my pc and it stopped happening.

That shouldn't possibly happen, as a terminated process always has all of its memory reclaimed (both system RAM and VRAM). As far as I know, Vulkan doesn't require manual cleanup here.

josefkaragoli commented 1 year ago

I also have a GTX1060, and I ran into this exact same issue, with precisely the same visual glitches you showed. For me it occured after setting the volume_depth of volumetric fog in the project settings to 512 in an alpha build of godot 4. Even after restarting my PC the issue persisted. However for me, the issue vanished after reinstalling my GPU drivers. I was even able to set my volume depth to 512 without running into the issue again. I assumed it was just a driver issue but perhaps it is specific to the 1060.