d3d12: opt-in once-per-frame checks for placed textures that stopped changing #590
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/590"
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 brcly/TuxBox. Originally posted by Jerkin42 on 2026-11-30T12:45:04Z.
Summary
Part of #472, focus 3 on #533.
Section-backed XMem pages have no write watch (#464). So every placed texture over them is digested before every batch, including the many that never change.
On the RX 9060 XT in the world, main hashed about 548 GB a minute this way, about 16.5 s of digest per minute (submit profile,
placement digest).TUXBOX_CHECK_ONCE_PER_FRAME=1checks a texture whose last eight checks found it unchanged at most once per presented frame. A check that finds a change, or doesn't settle, resets the count.A skipped check doesn't rearm the watch or clear the note. A write is therefore still seen at the next frame's check, at most a frame late. That delay is the trade-off, and why the switch is opt-in.
The presented-frame counter is bumped in
PresentX.Tested
GPU, driver and backend: AMD RX 9060 XT (
1002:7590), Mesa 26.1.8 RADV, GE-Proton11-14Commands run and their results:
ProjectScarlett: same build and settings twice, warm cache, the switch off and on. Frames per second come from
TUXBOX_FRAME_LOG, by 90 s window after reaching the world. The build was maine5d2e913with #390, #572 and #567 for the world, plus the change.Checks
No evidence JSON changed.
🤖 Generated with Claude Code
Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-12-01T02:20:11Z.
A measurement of
TUXBOX_CHECK_ONCE_PER_FRAME=1on an RTX 5090 (620.70.10, GE-Proton11-15), ProjectScarlett, 20 minutes each, integration build on main82109205(one run per arm, other settings the same, default page mode, no private views):TUXBOX_CHECK_ONCE_PER_FRAME=1TUXBOX_TILE_POOL=0and two runs of the previous integration build, medians were 1,212 to 1,860 ms and placement a frame 766 to 1,064 ms, so the 386 ms is outside that spread. The frame-time difference is not clearly outside it.