fix(hle/kernel): apply title priority cap when restoring startup priority raises (#282) #377
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Androtim--MiniVI!377
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-377"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@RUIZ-Enrique-25002136 on GitHub · 2026-12-03 07:52 UTC · original
RUIZ-Enrique-25002136:fix/kernel-startup-priority-cap→main· +25 −1 · 1 files · 1 commits · merged 2026-12-03 08:02 UTCSummary
Applies the post-window
cap = truerule andVICTORY_TITLE_PRIORITY_MAXcap (held_at) whengive_back_startup_raises()restores thread priorities at the end of aVICTORY_STARTUP_PRIORITIESwindow, rather than passing rawaskedvalues directly toSetThreadPriority.Addresses #282 (Pass #8
[P2]#1).Changes
crates/victory-hle/src/modules/kernel.rs:startup_restore_priority(asked, max)computingheld_at(title_priority(asked, false, true), max).give_back_startup_raises()to applystartup_restore_priority(asked, p_max).startup_restore_priority_respects_cap_and_priority_max.Rig Specs Tested On
x86_64)victory-hlecrate; full clippy & tests verified on GitHub Actionswindows-latestCI)x86_64) — Windowsx86_64-pc-windows-msvcCI verifies compilation, clippy, and unit testsRun Settings & Profile
origin/mainVICTORY_*Overrides: N/AMeasurements & Verification
cargo clippy --workspace --all-targets --locked -- -D warnings(verified on GitHub Actionswindows-latestCI)cargo clippy --workspace --all-targets --all-features --locked -- -D warnings(verified on GitHub Actionswindows-latestCI)cargo test --locked -p xtask-> 8 passed, 0 failedcargo xtask policy->asset policy: 349 files okcargo test --workspace --exclude victory-gpu --exclude victory-shader --locked(verified on GitHub Actionswindows-latestCI)