Clear only unread texture bytes #30

Open
github-bot wants to merge 1 commit from github-bot/gh-30 into main AGit
Owner

@⁠avt0m4t48 on GitHub · 2026-12-03 03:55 UTC · original
avt0m4t48:perf-clear-unread-texture-bytes → main · +5 −5 · 1 files · 1 commits · draft

Change

A failed large read is retried in 64 KiB and then 4 KiB pieces. Each successful attempt writes its full destination. Clear a leaf only if its final read fails, including failures that wrote a prefix. The initial clear and the clears before retrying a span can be skipped. Every read still runs at its original address and in its original order. Windows read contract

LinkoArts reads both the recorded runs and every gap, where ordinary committed memory may be present. That traversal covers the full destination.

Verification

An independent extracted Linux replay matched the full destination, byte count, digest and ordered read attempts in 16,000 cases per source and CPU setting. It included view maps with gaps, short ranges, page boundaries and failed reads that wrote none, part or all of the requested bytes.

The table shows 15 paired synthetic CPU measurements on the public source (x86-64). Each check times a read and the production digest. The read backend and faults are simulated.

1 MiB fixture Median before and after
Fully covered view 145.8 → 121.7 µs
Views separated by gaps 146.4 → 125.1 µs
Forced retries and partial reads 240.1 → 173.7 µs

The Windows MSVC standalone GPU tests and integrated workspace test targets type-checked with diagnostics and pure-Rust BLAKE3. The checks used an external allocator metadata declaration. The staged source passed the asset policy. Native page-fault handling and gameplay frame times remain unmeasured.

**@⁠avt0m4t48** on GitHub · 2026-12-03 03:55 UTC · [original](https://github.com/linkoovosh/LinkoArts-build/pull/30) `avt0m4t48:perf-clear-unread-texture-bytes` → `main` · +5 −5 · 1 files · 1 commits · draft ### Change A failed large read is retried in 64 KiB and then 4 KiB pieces. Each successful attempt writes its full destination. Clear a leaf only if its final read fails, including failures that wrote a prefix. The initial clear and the clears before retrying a span can be skipped. Every read still runs at its original address and in its original order. [Windows read contract](https://learn.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-readprocessmemory) LinkoArts reads both the recorded runs and every gap, where ordinary committed memory may be present. That traversal covers the full destination. ### Verification An independent extracted Linux replay matched the full destination, byte count, digest and ordered read attempts in 16,000 cases per source and CPU setting. It included view maps with gaps, short ranges, page boundaries and failed reads that wrote none, part or all of the requested bytes. The table shows 15 paired synthetic CPU measurements on the public source (x86-64). Each check times a read and the production digest. The read backend and faults are simulated. | 1 MiB fixture | Median before and after | |---|---:| | Fully covered view | 145.8 → 121.7 µs | | Views separated by gaps | 146.4 → 125.1 µs | | Forced retries and partial reads | 240.1 → 173.7 µs | The Windows MSVC standalone GPU tests and integrated workspace test targets type-checked with diagnostics and pure-Rust BLAKE3. The checks used an external allocator metadata declaration. The staged source passed the asset policy. Native page-fault handling and gameplay frame times remain unmeasured.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 05:22:09 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/30/head:github-bot/gh-30'
git switch 'github-bot/gh-30'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-30'
git switch 'github-bot/gh-30'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-30'
git switch 'github-bot/gh-30'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-30'
git switch 'main'
git merge --squash 'github-bot/gh-30'
git switch 'main'
git merge --ff-only 'github-bot/gh-30'
git switch 'main'
git merge 'github-bot/gh-30'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.