Repository navigation
GPU diagnostics: measure memory-copy fallback cost - #7
Draft
TinyBiggles wants to merge 2 commits into
Draft
TinyBiggles wants to merge 2 commits into
TinyBiggles wants to merge 2 commits 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.
AI-assisted draft for this fork. The existing MoveUs metric times the initial ReadProcessMemory attempt only, while Fallbacks counts failed bulk copies without accounting for retry calls or elapsed time. This makes the cost of fallback copying difficult to isolate (upstream issue Marvisak#783). Add per-frame fallback read-call count and total elapsed milliseconds, excluding the initial bulk attempt. The existing 64 KiB / 4 KiB retry and zero-fill policy is unchanged; aggregate unreadable-byte accounting once per fallback. The callback-based policy has two synthetic tests covering the retry sequence, exact unreadable ranges, unaligned edges and empty ranges. This is instrumentation, not a claim of faster copies. Upstream Marvisak#202/Marvisak#783 propose different sparse-copy implementations, and Marvisak#472/Marvisak#497 already address snapshot growth; no duplicate optimization is proposed. Windows CI pending. No game assets or physical GPU measurements. Keep draft unmerged and do not submit upstream without review and authorization.
Verified Windows CI — 2026-11-24
CI run 45387548969 succeeded for
a39d16ea8f73e517bbf7437e7b9c7160b3d5df1f. Workspace tests: 344 passed, 0 failed, 6 ignored. Both new regression tests passed. No physical GPU or game testing performed. Draft remains unmerged.