Exact texture refreshes read through the kernel before waiting
The uploads before a bake must read title memory as it is (`exact`), so while the runtime remapped title memory they waited for it to finish, even with VICTORY_TEXTURE_NO_WAIT=1: 808 of 866 ms of texture refreshes a frame in a cutscene second (diag run 2026-11-26 15:58). Now such a refresh reads the texture whole through the kernel first: that read needs no lock, gets every byte as title memory holds it at that moment, and fails where a page is away; only then does it wait, as before. The frame line counts both. VICTORY_EXACT_NO_WAIT=0: always waits. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
b3d49db34f
commit
3cb7b8f1d0
2 files changed
+69
No files matched your search
@@ -8776,6 +8776,15 @@ impl Meter {
|
||||
with less than was mapped (looked at again)"
|
||||
);
|
||||
}
|
||||
let [read, waited] =
|
||||
[0, 1].map(|i| crate::texture::EXACT_UNLOCKED[i].swap(0, Ordering::Relaxed) as f64 / frames);
|
||||
if read + waited > 0.0 {
|
||||
tracing::info!(
|
||||
"exact texture refreshes (uploads before a bake) that found title memory being remapped, per frame: \
|
||||
{read:.1} read whole through the kernel without waiting, {waited:.1} waited (a page was not there) \
|
||||
(VICTORY_EXACT_NO_WAIT=0: all wait)"
|
||||
);
|
||||
}
|
||||
}
|
||||
{
|
||||
let [copies, joined] = [0, 1].map(|i| COPIES_JOINED[i].swap(0, Ordering::Relaxed) as f64 / frames);
|
||||
|
||||
Reference in new issue
Block a user