Fewer empty staging blocks kept; the raw twins made are counted
Run crash-1 held 5.2 GB of staging blocks (n02: 0.9): at most 8 empty ones stay (512 MB of the PC's memory). With the frame line: raw twins made per frame, and those that had to be views as the title's are. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
60484536b0
commit
62c13818e7
3 files changed
+22
-10
No files matched your search
@@ -286,6 +286,14 @@ pub(crate) static SYNCED: [std::sync::atomic::AtomicU64; 6] = [const { std::sync
|
||||
/// Nothing while no heap page changed.
|
||||
#[cfg(windows)]
|
||||
pub(crate) fn sync_line(frames: f64) {
|
||||
let [twins, as_is] = [0, 1].map(|i| host::TWINS[i].swap(0, std::sync::atomic::Ordering::Relaxed));
|
||||
if twins > 0 {
|
||||
tracing::info!(
|
||||
"raw twins of buffer views made per frame (VICTORY_RAW_VIEWS=0: none): {:.0}, of them {:.1} as the title's view is (it does not begin on 16 bytes)",
|
||||
twins as f64 / frames,
|
||||
as_is as f64 / frames
|
||||
);
|
||||
}
|
||||
let [pages, looked, mirrored, micros, tabled, later] = [0, 1, 2, 3, 4, 5].map(|i| SYNCED[i].swap(0, std::sync::atomic::Ordering::Relaxed));
|
||||
if pages == 0 {
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user