Merge night/stream

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-25 03:23:50 -06:00
commit bd267d85c9
5 files changed
+370 -36

No files matched your search

+6 -2
View File
@@ -318,11 +318,15 @@ fn workers() -> bool {
let spawned = std::thread::Builder::new()
.name(format!("victory-pipelines-{i}"))
.spawn(|| {
// Below the title's own threads (loading, recording).
// Below the title's own threads (loading, recording),
// and the streaming one, which is below normal itself
// (`VICTORY_PIPELINE_LOWEST=0`: level with it, as before).
let lowest = std::env::var_os("VICTORY_PIPELINE_LOWEST").is_none_or(|v| v != "0");
// SAFETY: a plain call on our own thread.
unsafe {
use windows::Win32::System::Threading::*;
let _ = SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_BELOW_NORMAL);
let priority = if lowest { THREAD_PRIORITY_LOWEST } else { THREAD_PRIORITY_BELOW_NORMAL };
let _ = SetThreadPriority(GetCurrentThread(), priority);
}
loop {
next().make();