Skip to content

Conversation

@blueskythlikesclouds
Copy link
Contributor

@blueskythlikesclouds blueskythlikesclouds commented Oct 29, 2025

Fixes performance regression introduced in #111183.

This is new behavior in latest D3D12MA. For buffers smaller than 64 KB, D3D12MA creates them as committed resources by default to take advantage of the driver tightly packing them. However, since committed resources can take a long time to create, and the canvas renderer in Godot does a lot of small vertex buffer allocations per frame, D3D12MA version upgrade introduced a huge performance hit. We can disable this unintended behavior by setting the D3D12MA::ALLOCATOR_FLAG_DONT_PREFER_SMALL_BUFFERS_COMMITTED flag.

@Repiteo Repiteo merged commit 2b3c397 into godotengine:master Oct 29, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Oct 29, 2025

Thanks!

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.

4 participants