Memory: new sparse tiles are mapped together before the next submit #1517
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1517
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1517"
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?
@oishigeso on GitHub · 2026-11-24 17:10 UTC · original
oishigeso:sparse-batch→main· +66 −11 · 1 files · 1 commits · draftFollows
7f94c6f(#532), which parks decommitted tiles; this does the same for new ones. A title starting on a Series S profile maps 4.3 GB of physical pages in small pieces (MapTitlePhysicalPages→sparse::committed), and each new tile cost oneUpdateTileMappingsplus a signal (~0.4 ms on this PC). Its loading thread was held ~25 s with nothing presented, and its stall watchdog ended it. Related: #1268 (the firstUpdateTileMappingscalls holding the render thread).New tiles now get their pool tile in
mappedat once, and their mapping call is queued (pending).flush_pendingsends them, one call per window, before the title's next submit, before XCL's own copies and readbacks on the windows, or past 4,096 tiles. A tile decommitted before the flush is skipped. One decommitted and parked before its mapping was sent stays pending, because taking it back fromparkedsends no mapping.What is in it
crates/xcl/src/hle/d3d12x/sparse.rs:pending,flush_pending, called frombefore_execute, the upload and readback paths, andcommit_rangepastPENDING_MAX; the existing parking test extended to commit, decommit, flush and commit againTested
cargo test -p xcl --lib sparse -- --test-threads=1: 16 passed, 0 failed, 1 ignored7f94c6fsince; the combination was reviewed against the parking, which found the parked-before-flush case above (now in the test).main, presenting every 2 s window at the end.Regression run
main:
PR (this PR's head commit; the title is run through a folder named RetailTitle):
Not tested
AI use
🤖 Generated with Claude Code
@DavidM1911 on GitHub · 2026-11-24 18:53 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.