Skip to content

GPU diagnostics: measure memory-copy fallback cost - #7

Draft
TinyBiggles wants to merge 2 commits into
mainfrom
contrib/copy-fallback-telemetry
Draft

TinyBiggles wants to merge 2 commits into
mainfrom
contrib/copy-fallback-telemetry

Conversation

@TinyBiggles

@TinyBiggles TinyBiggles commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant