Skip to content

Conversation

@csyonghe
Copy link
Contributor

@csyonghe csyonghe commented Jan 15, 2026

Vulkan init‑upload memory retention — per‑buffer staging kept alive
In Vulkan createBuffer(initData) the backend created a per‑buffer upload/staging buffer (m_uploadBuffer) and kept it as a member, so host memory scaled with every buffer ever initialized. The fix uses a local upload buffer and releases it after the copy completes (with flushAndWait() to match D3D’s semantics), eliminating the persistent host‑memory footprint.

@csyonghe csyonghe requested a review from a team as a code owner January 15, 2026 03:32
@csyonghe csyonghe changed the title Vulkan: release upload buffer after init copy Vulkan: release upload buffer after init copy + shader object regression fix Jan 15, 2026
@csyonghe csyonghe changed the title Vulkan: release upload buffer after init copy + shader object regression fix Vulkan: release upload buffer after init copy Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants