Cores: VICTORY_CPU_LOG=1 logs once a second the copy and heap pass time by thread and logical processor #1671

Manually merged
github merged 4 commits from github-bot/gh-1671 into main 2026-11-29 08:21:42 +00:00 AGit
Owner

@⁠101Leafy on GitHub · 2026-11-28 23:16 UTC · original
101Leafy:nv/cpu-log → main · +119 −17 · 12 files · 4 commits · merged 2026-11-29 08:16 UTC

What it changes

VICTORY_CPU_LOG=1 logs a line once a second for the title memory copies and one for the heap pass. Each line gives the total time spent and the share of it on the fast cores, then per thread the time by the logical processor it was on when each piece ended. On a hybrid CPU this shows whether those passes land on the slow cores.

The times are noted where the submission already measures them: the copies of a submission's steps, the refreshes of a flush, the light check of a few refreshes, and the heap buffer pass. Unset, each note is one flag check. No thread starts.

How it was tested

  • Tested on: RTX 5080 16 GB on Windows 10
  • Built with clippy only, not run in a game yet
  • Before: the copy and heap pass times are known only as totals
  • After: the same times split by thread and logical processor
  • For shader changes, the wave sizes tested: not a shader change.
  • cargo clippy -p victory-gpu --all-targets with --features diagnostics and again without it: no warnings in cores.rs, and none on the lines added to host.rs or draw.rs

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #1662 also changes cores.rs (core placement), not its new log module. None log time by processor; host.rs and draw.rs are touched by many open pull requests, and this adds four single lines there.
**@⁠101Leafy** on GitHub · 2026-11-28 23:16 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1671) `101Leafy:nv/cpu-log` → `main` · +119 −17 · 12 files · 4 commits · merged 2026-11-29 08:16 UTC ## What it changes `VICTORY_CPU_LOG=1` logs a line once a second for the title memory copies and one for the heap pass. Each line gives the total time spent and the share of it on the fast cores, then per thread the time by the logical processor it was on when each piece ended. On a hybrid CPU this shows whether those passes land on the slow cores. The times are noted where the submission already measures them: the copies of a submission's steps, the refreshes of a flush, the light check of a few refreshes, and the heap buffer pass. Unset, each note is one flag check. No thread starts. ## How it was tested - Tested on: RTX 5080 16 GB on Windows 10 - Built with clippy only, not run in a game yet - Before: the copy and heap pass times are known only as totals - After: the same times split by thread and logical processor - For shader changes, the wave sizes tested: not a shader change. - `cargo clippy -p victory-gpu --all-targets` with `--features diagnostics` and again without it: no warnings in cores.rs, and none on the lines added to host.rs or draw.rs ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #1662 also changes cores.rs (core placement), not its new log module. None log time by processor; host.rs and draw.rs are touched by many open pull requests, and this adds four single lines there.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 23:19:08 +00:00
github-bot force-pushed github-bot/gh-1671 from 3ad1169207 to 158af42dab 2026-11-29 01:46:43 +00:00 Compare
github manually merged commit c8897176b7 into main 2026-11-29 08:21:42 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1671
No description provided.