A texture filled while the runtime remaps takes the pages that are there
With VICTORY_TEXTURE_NO_WAIT=1 a refresh that met the runtime remapping title memory read the whole chain or nothing. A texture the title holds only the smaller levels of is never all there, so nothing was read, and the upload recorded before put the staging buffer's zeros over the levels on the card. A staging buffer never filled now takes the pages that are there; what was away for the moment of a change is read after it, and a filling with less than was mapped makes the slots due again (at most 8 times in a row). VICTORY_TEXTURE_FILL=0: as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
ab71750898
commit
955c8b49d9
6 files changed
+282
-10
No files matched your search
@@ -1596,6 +1596,22 @@ pub(crate) fn again_after_change(since: u64, mut f: impl FnMut() -> bool) -> boo
|
||||
false
|
||||
}
|
||||
|
||||
/// Returns when the change of a mapping that is under way, if one is, is
|
||||
/// over (or has been going on for 2 ms): pages it took away for its moment
|
||||
/// are back. Another may have begun.
|
||||
pub(crate) fn change_over() {
|
||||
let now = changes();
|
||||
if now.is_multiple_of(2) {
|
||||
return;
|
||||
}
|
||||
let started = std::time::Instant::now();
|
||||
while changes() == now && started.elapsed().as_millis() < 2 {
|
||||
for _ in 0..50 {
|
||||
std::hint::spin_loop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// [`changes`], when no change is under way (or one has been for a second).
|
||||
fn change_done() -> u64 {
|
||||
let mut tries = 0;
|
||||
|
||||
Reference in new issue
Block a user