The run's numbers on the picture (VICTORY_PANEL=1; off; F3 shows and hides it)

White on black in the upper left corner of what is shown, twice a second, from the
counters of the frame-rate line, memory and textures; our own 5x7 characters. Copied
onto the swap chain's buffer out of a buffer in the card's memory: screenshots carry
it, saved frames and the frame recorder do not.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-25 10:52:47 -06:00
1 parent bc83b16387
commit edcde681f0
7 files changed
+529 -2

No files matched your search

+8 -1
View File
@@ -161,6 +161,13 @@ pub(crate) fn add(c: C, n: u64) {
COUNT[bank()].0[c as usize].fetch_add(n, Relaxed);
}
/// The counter, all sets together, as it is now (it goes back to 0 with
/// [`log`]).
pub(crate) fn peek(c: C) -> u64 {
let i = c as usize;
COUNT.iter().map(|b| b.0[i].load(Relaxed)).sum()
}
/// Counter `i`, all sets together, from now on 0.
fn taken(i: usize) -> u64 {
COUNT.iter().map(|b| b.0[i].swap(0, Relaxed)).sum()
@@ -491,7 +498,7 @@ mod own_tests {
/// The process's memory in bytes: in physical memory, and committed
/// (private bytes).
fn process_memory() -> (u64, u64) {
pub(crate) fn process_memory() -> (u64, u64) {
use windows_sys::Win32::System::ProcessStatus::{
K32GetProcessMemoryInfo, PROCESS_MEMORY_COUNTERS,
};