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

Fix uniform buffer being created every frame when halfsize mismatches #65738

Merged

Conversation

BastiaanOlij
Copy link
Contributor

When SSAO and SSIL aren't both set to full size or half size we were creating a new uniform buffer every frame.

The bug is fixed by the line ss_effects.used_mips_last_frame = use_mips; but we were also missing proper de-allocation of this uniform buffer. In most cases the uniform buffer is destroyed when it should due to dependencies but in theory it would be possible a new buffer is created when settings change while the old buffer remained.

Fixes #63202

@akien-mga akien-mga merged commit 0f3f850 into godotengine:master Sep 13, 2022
@akien-mga
Copy link
Member

Thanks!

@BastiaanOlij BastiaanOlij deleted the fix_ssao_ssil_memory_leak branch September 13, 2022 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vulkan: Toggling the SSAO Half Size option in Project Settings causes memory leak
2 participants