gpu: reduce redundant hash lookups and collapse branches in descriptor/draw paths #1117
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1120"
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?
Imported from fxceless/victory-fork. Originally posted by Lkxex on 2026-11-25T20:19:46Z.
Summary
Apply a small set of clippy-suggested cleanups in
victory-gpuwith no behavior change:fpsbox: useHashMap::entryinstead ofcontains_key+insert(one hash lookup instead of two).pipeline::library: collapse nestedifinto a singleif … && let Err.queue/shadow: useis_multiple_ofinstead of% == 0.draw: usesort_unstable_by_keyinstead ofsort_unstable_by.resource: allowdead_codeon the unusedplaced_filler_twinsdiagnostic.Validation
cargo check -p victory-gpupasses.cargo clippy -p victory-gpuis now warning-free.cargo test -p victory-gpupasses (182 passed, 5 ignored); one pre-existing GPU indirect test (warp_budget_saturates_…) is environment/flaky and unrelated to this change.Limitations
Assisted By NetherySiloX
Imported from fxceless/victory-fork. Originally posted by Lkxex on 2026-11-25T20:21:52Z.
Closing: low-value cleanup, not aligned with contribution goals. Will reopen as part of a larger, evidence-backed change.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.