DirectStorage: report file bytes before decompression #3789
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3789"
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 ivall/xcl. Originally posted by Prime1997 on 2026-12-03T14:45:07Z.
Add opt-in attribution for the bytes DirectStorage reads from each file before decoding. This covers main’s serial and pooled reads, including bytes returned by Windows from its file cache. The activity log keeps the busiest paths and aggregates the rest.
What is in it
XCL_DSTORAGE_FILE_IO=1adds an interval report alongsideXCL_ACTIVITY=1.Tested
14cdbf7f9c425714e430fb913be95c4030c426abon Windows x64.cargo test --locked -p xcl --lib -- --test-threads=1 --nocapture --exactwith the partial-read accounting, sequential short-read, and pooled retirement fixtures. 3 passed, 0 failed, 0 ignored, 0 skips. The fixtures used synthetic files.Regression run
Not tested
AI use
Contributors can use this optional temporary Discord to coordinate testing and compare results.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-03T17:27:41Z.
merge-check
base:
16c2fd082ahead:
14cdbf7f9cmerge: clean
build: ok
tests: 3019 passed, 0 failed, 56 ignored; 28 skipped, the same as on main
review: 3 medium (below)
performance: 60 s smoke run: 1683 → 1653 frames (98 % of main), peak commit 18505 → 18011 MB, no device removal, no crash
title run: retail title on the RTX 5070 Ti (driver 621.14), into the world by scripted presses: 231 s there, 0 device removals, 0 crashes, 3.5 presents/s; run with
XCL_SKIP_CS=95cc13288a27a96e(the NVIDIA hang at the end of loading, #3541) and NVIDIA's 2048 MB shader heap (#2590)verdict: not yet: it is a draft, and
PR descriptionis red; otherwise no blocking finding, the suite passes and the smoke run is cleanhardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5
In short: Adds an opt-in count (XCL_DSTORAGE_FILE_IO=1, printed with XCL_ACTIVITY) of bytes returned by DirectStorage file reads, per path, on both the serial and the pooled read paths. The reading found the counting correct, partial reads included, and nothing on the default path beyond a None check. Nothing blocks it; the textual conflict with #3364 and the lifetime cap on listed paths should be sorted out.
Medium
Checked and fine
How this was tested
16c2fd08, thencargo build --workspaceandcargo test --workspace --no-fail-fast -- --test-threads=4.scripts/smoke.ps1: 60 s of a retail title on main16c2fd08and on this merge; presents per 2 s at the end: 61 60 60.XCL_RUN_SECONDS=300and scripted A presses counted from the first frame (XCL_PRESS_BASE=frame, #3712) into the world from an existing save; time in the world is counted from the first in-world draw call to the end of the run.Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.
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.