fix(hle/kernel): apply title priority cap when restoring startup priority raises (#282) #377
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Androtim/MiniVI. Originally posted by RUIZ-Enrique-25002136 on 2026-12-03T07:52:33Z.
Summary
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)