Recording: a lock a descriptor slot, a thread's own answers about buffers, tables left as they are when nothing changed
Timeline waits-1 (dorm, 78 ms): the title's render thread stands 20 to 30 ms a frame at one recording job and the rest at others; recording is the critical path, and our list calls are 95 % of it. Profile waits-1, the five recording threads: 21 % contended locks, 11 % HostHeap::keep, 17 % readable, 7 % the look-up of buffers, 8 % clocks and counters of ours. VICTORY_QUICK_FIND=0 and VICTORY_READY_ONCE=0 go back; counters of the diagnostics by thread, a coarse clock for what is noted per texture and slot. VICTORY_AB=<s>,<switches> turns switches on and off while the title runs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
336f613986
commit
a1bdba4cf9
9 files changed
+405
-61
No files matched your search
@@ -31,8 +31,17 @@ static BITS: AtomicU32 = AtomicU32::new(0);
|
||||
|
||||
/// Whether `switch` is on now, if it is one of those that change.
|
||||
pub(crate) fn pick(switch: &str) -> Option<bool> {
|
||||
let n = asked()?.switches.iter().position(|s| s == switch)?;
|
||||
Some(BITS.load(Relaxed) >> n & 1 != 0)
|
||||
bit(switch).map(on)
|
||||
}
|
||||
|
||||
/// The number of `switch` among those that change.
|
||||
pub(crate) fn bit(switch: &str) -> Option<u32> {
|
||||
Some(asked()?.switches.iter().position(|s| s == switch)? as u32)
|
||||
}
|
||||
|
||||
/// Whether the switch of that number is on now.
|
||||
pub(crate) fn on(bit: u32) -> bool {
|
||||
BITS.load(Relaxed) >> bit & 1 != 0
|
||||
}
|
||||
|
||||
/// What the run has seen of the phase under way.
|
||||
|
||||
Reference in new issue
Block a user