cores: VICTORY_HELPER_PRIORITY is no longer also the helpers' on/off switch #2301

Manually merged
github merged 1 commit from github-bot/gh-2301 into main 2026-11-30 14:17:31 +00:00 AGit
Owner

@⁠ACSchafer on GitHub · 2026-11-29 11:35 UTC · original
ACSchafer:pr/helpers-raised-switch → main · +33 −7 · 2 files · 1 commits · merged 2026-11-30 14:12 UTC

Fixes the inconsistency listed in docs/unified-memory-audit.md ("VICTORY_HELPER_PRIORITY read both as on/off and as a number from -2 to 2").

What it changes

VICTORY_HELPER_PRIORITY was read two ways in cores.rs. helper_priority() reads it as a thread priority from -2 to 2. helpers_raised() reads it as toggled! (on unless 0). Any number but 0 turned the raising on, so Priority::keep put a helper given -1 or 2 back to above normal before every piece of work.

  • The on/off switch has its own name: VICTORY_HELPERS_RAISED. It is on unless 0, and VICTORY_AB can flip it as before.
  • A number given in VICTORY_HELPER_PRIORITY is now the priority raised helpers run at, in place of above normal (raised_priority).
  • Unchanged:
    • nothing set: above normal
    • play mode's VICTORY_HELPER_PRIORITY=1: above normal
    • VICTORY_HELPER_PRIORITY=0: normal
    • the list translators' priority (list_priority_for)
  • One rename to note: a VICTORY_AB list that named VICTORY_HELPER_PRIORITY to flip the raising now names VICTORY_HELPERS_RAISED.

How it was tested

  • GPU and profile: not applicable (thread priorities only; no rendering change)
  • Before: VICTORY_HELPER_PRIORITY=-1 or 2 gave helpers above normal
  • After: they keep the number given; the defaults are as before
  • For shader changes, the wave sizes tested: not applicable
  • cargo test passed for the crates it touches: yes. cargo test -p victory-gpu --lib cores::, including the new a_helper_priority_number_is_not_put_back_to_above_normal. cargo clippy -p victory-gpu --all-targets, with and without --all-features, reports nothing in cores.rs. (-D warnings stops earlier, in victory-shader and victory-loader, the same as CI on main @ 829188e9.)

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: none found.
**@⁠ACSchafer** on GitHub · 2026-11-29 11:35 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2301) `ACSchafer:pr/helpers-raised-switch` → `main` · +33 −7 · 2 files · 1 commits · merged 2026-11-30 14:12 UTC Fixes the inconsistency listed in `docs/unified-memory-audit.md` ("`VICTORY_HELPER_PRIORITY` read both as on/off and as a number from -2 to 2"). ## What it changes `VICTORY_HELPER_PRIORITY` was read two ways in `cores.rs`. `helper_priority()` reads it as a thread priority from -2 to 2. `helpers_raised()` reads it as `toggled!` (on unless `0`). Any number but `0` turned the raising on, so `Priority::keep` put a helper given `-1` or `2` back to above normal before every piece of work. - The on/off switch has its own name: `VICTORY_HELPERS_RAISED`. It is on unless `0`, and `VICTORY_AB` can flip it as before. - A number given in `VICTORY_HELPER_PRIORITY` is now the priority raised helpers run at, in place of above normal (`raised_priority`). - Unchanged: - nothing set: above normal - play mode's `VICTORY_HELPER_PRIORITY=1`: above normal - `VICTORY_HELPER_PRIORITY=0`: normal - the list translators' priority (`list_priority_for`) - One rename to note: a `VICTORY_AB` list that named `VICTORY_HELPER_PRIORITY` to flip the raising now names `VICTORY_HELPERS_RAISED`. ## How it was tested - GPU and profile: not applicable (thread priorities only; no rendering change) - Before: `VICTORY_HELPER_PRIORITY=-1` or `2` gave helpers above normal - After: they keep the number given; the defaults are as before - For shader changes, the wave sizes tested: not applicable - `cargo test` passed for the crates it touches: yes. `cargo test -p victory-gpu --lib cores::`, including the new `a_helper_priority_number_is_not_put_back_to_above_normal`. `cargo clippy -p victory-gpu --all-targets`, with and without `--all-features`, reports nothing in `cores.rs`. (`-D warnings` stops earlier, in `victory-shader` and `victory-loader`, the same as CI on `main` @ `829188e9`.) ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: none found.
VICTORY_HELPER_PRIORITY was read two ways: by helper_priority() as a
thread priority from -2 to 2, and by helpers_raised() as on unless 0.
Any number but 0 turned the raising on, so Priority::keep put a helper
given -1 or 2 back to above normal before every piece of work.

The on/off switch has its own name now, VICTORY_HELPERS_RAISED (on
unless 0; VICTORY_AB can flip it as before). A number given in
VICTORY_HELPER_PRIORITY is the priority raised helpers run at, in place
of above normal. Unchanged: nothing set (above normal), play mode's
VICTORY_HELPER_PRIORITY=1 (above normal), VICTORY_HELPER_PRIORITY=0
(normal). The one rename to note: a VICTORY_AB list that named
VICTORY_HELPER_PRIORITY to flip the raising names VICTORY_HELPERS_RAISED.

Test a_helper_priority_number_is_not_put_back_to_above_normal.
docs/unified-memory-audit.md's entry for the double reading is marked fixed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 11:39:02 +00:00
Author
Owner

@⁠copilot-pull-request-reviewer[bot] on GitHub · 2026-11-29 11:35 UTC · original · reviewed

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

**@⁠copilot-pull-request-reviewer[bot]** on GitHub · 2026-11-29 11:35 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2301#pullrequestreview-6102690496) · **reviewed** Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
github manually merged commit ee1748bab0 into main 2026-11-30 14:17:31 +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!2301
No description provided.