Repository navigation
perf(gpu): hash tracked texture subresources with a 128-bit digest - #476
Closed
romainhedouin wants to merge 1 commit into
Closed
romainhedouin wants to merge 1 commit into
romainhedouin wants to merge 1 commit into
Conversation
blake3 took 0.45 ms a MiB on the arm64 NEON path; the digest takes 0.034 ms (native model, M4, same code, about 13x). Only tracked textures hash (VICTORY_FAULT_TRACKING=1): with fault tracking off, the Rosetta default, they are compared byte for byte. The digest is not cryptographic; a collision leaves one subresource stale until its next change. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
romainhedouin
force-pushed
the
perf/texture-digest-128
branch
from
November 27, 2026 01:11
6fea78e to
8c2e7e4
Compare
Owner
|
Thanks. This now conflicts with main after today's merges. Could you merge or rebase main into it and rerun the checks? I will merge it once CI is green. |
Owner
|
Thank you. #415 changed the same code: main now tracks each subresource as AllZero or a BLAKE3 hash ( |
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.
Tracked texture subresources (
VICTORY_FAULT_TRACKING=1only) are now compared by a 128-bit digest instead ofblake3::hash; untracked memory (the Rosetta default) is still compared byte for byte. The digest is not cryptographic (a change confined to one 16-byte lane must repeat that lane's 64-bit state, so the effective bound there is about 2^-64, not 2^-128): a collision would leave one subresource stale until its next change.blake3stays a dependency (used elsewhere).Tested: Windows clippy (both configs) clean and the two new unit tests pass in a standalone copy; not run under CrossOver, and the share of a frame spent hashing is unmeasured. Will conflict textually with #415, #416 and #417, which edit the same lines.
🤖 Generated with Claude Code