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

Merged
ACSchafer merged 1 commit from upstream-pr/2301 into main 2026-11-30 14:12:03 +00:00
ACSchafer commented 2026-11-29 11:35:19 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ACSchafer on 2026-11-29T11:35:19Z.


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.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5550308521 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2301). Originally posted by [ACSchafer](https://github.com/ACSchafer) on 2026-11-29T11:35:19Z. --- 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.
copilot-pull-request-reviewer[bot] commented 2026-11-29 11:35:31 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-29T11:35:31Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:review:6102690496 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2301#pullrequestreview-6102690496). Originally posted by [copilot-pull-request-reviewer[bot]](https://github.com/apps/copilot-pull-request-reviewer) on 2026-11-29T11:35:31Z. **Review:** COMMENTED --- 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.
Sign in to join this conversation.
No reviewers
No labels
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.

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