Repository navigation
Vulkan: allocate fewer command buffers for small encoders - #6
Draft
matthargett wants to merge 1 commit into
Draft
matthargett wants to merge 1 commit into
matthargett wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Potential upstream optimization; no XR or Babylon dependency. Initially allocate two buffers per command pool instead of sixteen. Keep the existing batch size when more are needed. Reset and retirement are unchanged.
Quest 1 Vulkan, two finished commands per submit, exact GPU readbacks every 12 iterations. A cache-miss call graph led through command-pool reset into the driver allocator. Matched Release ABBA, three nonmultiplexed counter groups: CPU cycles −10.2%, instructions −7.9%, L1 data misses −16.5%, branch misses −6.2%; median submit 139.75 → 137.08 µs. Two runs per variant per group. In four placed Hill Valley windows without capture, 5.00 → 5.06 app fps; no meaningful scene uplift.
The grow/discard/reset sequence (0–48 finished buffers) passed on Quest Vulkan; the registered GPU test type-checks on this branch. Both physical comparisons used the Babylon integration with wgpu 30.0.1.