Skip the descriptor clock unless a slow binding is being logged #306
No reviewers
Labels
No labels
accessibility
autorelease: pending
autorelease: tagged
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
testing wanted
wontfix
No milestone
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Hookshot!306
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/desc-clock"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
build_descriptorsreadsteady_clockbefore every uniform binding, every storage-buffer entry, and every written-buffer stamp, thenslow_descriptorread it again. That log prints at most 40 lines, and only when a binding takes 2 ms, so a normal frame paid for the clock and never logged.RX_VK_SLOW_DESCis set. With it unset, descriptor resolution is the same work as before, minus the clock.Test plan
python -I -B tests/test_desc_clock.pypasses: the three clocks and the three slow-descriptor calls insidebuild_descriptorssit behindslow_desc_timing()