-
-
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
Lightmap bake crash at the beginning of the baking #98180
Comments
I can't reproduce this with https://github.com/godotengine/tps-demo on 4.4.dev 04692d8 (Linux, GeForce RTX 4090 with NVIDIA 560.35.03). VRAM utilization goes up to 9.6 GB while baking lightmaps, so you probably need a GPU with at least 10 GB of VRAM for the bake to succeed. |
@DarioSamo Could the local rendering device be holding on to intermediate resources and never freeing anything until the local rendering device is freed? I know we have issues on the main rendering device when we aren't swapping frames. So is it possible that by doing doing a submit + sync, we never end up freeing temporary resources? |
The only difference would be the execution of swap_buffers() vs submit() and sync(), and upon a short review, the only difference is one presents to the swap chain and the other doesn't. Both call into the exact same set of functions. I don't think there's a difference from that aspect at least. |
This have been aggravated since the fastest features added to the lighmap. Baking even a faction of the lumberyard bistro scene has been impossible |
4.4 dev7: This doesn't seem to be related to the available VRAM amount, I had a crash when baking the TPS demo at a lower texel density and it only took 4 GB out of the 16 GB available in total. It looks like the crash occurs if the bake process takes too long Edit: On 4.3 stable the crash doesn't occur with the same settings, it's most likely an issue introduced in 4.4 |
@Calinou paging so that this gets regression tag in light of the above comment |
Tested versions
v4.4.dev.custom_build [708acdf]
System information
Ubuntu 22.04
Edit: Nvidia 2060 6gb VRAM
Issue description
Trying to bake lightin in the TPS demo gets this error at the beginning of the bake. Previous builds had no problem baking
Steps to reproduce
Bake Lightmaps with 5 bounces, low quality, 1.5 texel density
Minimal reproduction project (MRP)
TPSDemo
The text was updated successfully, but these errors were encountered: