Textures wait as known holes after the title maps them: title_memory_remapped must release the range's holes (late textures, "blob" people) #2029
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#2029
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@birdneststream on GitHub · 2026-11-29 08:00 UTC · original
Found while running the layer under Proton on an RTX 5090 (Linux); the fix is in our fork's tree and tested there. Diffs are against current
main(e1f2eb60) and compile there.What happens
With known holes on (the default when
light()is on),guard()records a placeholder block that is wholly uncommitted as absent and held as a known hole (watch.rs, theknown_holes() && placeholder(block)branch) — andguard()never asks about a held block again (g.absent.range(..).filter(|block| !g.held.contains(*block))).A texture's placeholder is guarded long before the title streams the texture's pages into it. When the title maps them (
MapViewOfFile3into the placeholder →title_memory_remapped), the hook opens the guards but leaves the block held: the texture pass is answered "known, nothing there" untillook_at_holes()works round to it — a hundredth of the held holes per call. Until then the texture is "waiting for their memory", and people are blobs.title_memory_allocatedandkernel_writingboth release the range's holes;title_memory_remappedwas the one mapping path that did not.Evidence (RTX 5090, Proton Experimental / GE-Proton11-14, vkd3d-proton 71cae091, 2026-11-29)
Same scene, two starts of the same build a few minutes apart:
textures picked by index, the queue: 3015 slots, 205 of them due …, 156 waiting for their memory(a build before placeholders were recognised under Wine:0 waiting)texture refreshes per frame, all threads: 35.8 ms, of them … 27.7 ms asking the write watch and the guards(before:12.5 ms … 1.5 ms asking)0 waiting for their memory; texturesserved for the first time … 0.3 frames after they were due; the player's "blob people between scenes" is gone.This is not Wine-specific: with known holes on it happens wherever a placeholder is guarded before its view is mapped. The texture reports of the last days (#1943, #1924, #1179's family) read like it.
The change
watchtests: 53/53 here (under wine-staging 11.22, where the four known-holes tests pass since our placeholder fix — #1601 is the same idea).@github-actions[bot] on GitHub · 2026-11-29 08:00 UTC · original
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
@birdneststream on GitHub · 2026-11-29 08:02 UTC · original
PR with the change: #2033 (one commit on
main).@birdneststream on GitHub · 2026-11-29 08:06 UTC · original
Correction, and my apologies: the before/after I quoted here does not hold. Re-measured over whole runs of the two builds (before and after this change, same scenes,
VICTORY_CPU_LOG=1):waiting for their memoryhas the same median (156 before, 157 after), and the texture threads' "asking the write watch and the guards" is unchanged by this change (28.8 ms a frame mean in the build that has it).What did fix the late textures on our machine was something else: the layer's "keep this thread on the fast cores" request is a no-op under Wine (
SetThreadSelectedCpuSetsis stored and never applied; probed below), so the copy and texture threads ran mostly on the E-cores. Backing it with an affinity mask took the texture threads' asking from 28.8 to 7.8 ms a frame and the copies from 28 % to 100 % on the fast cores — see the next issue.The change proposed here is still consistent with
kernel_writingandtitle_memory_allocated(both release the range's holes;title_memory_remappedwas the one mapping path that did not), but I have no measurement showing an effect, so I am closing its PR. Sorry for the noise.@trustno1-coder on GitHub · 2026-11-30 15:37 UTC · original
Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is v2026.11.30.01.
If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run:
victory-nvidia-play-<date>-<time>-<number>.login%LOCALAPPDATA%\victory\logs\.%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, plus the newest.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\if there is one from that run.