UI: Add "Below Normal" priority option
This commit is contained in:
parent
960958a4ca
commit
d69652503b
@ -689,6 +689,7 @@ Basic.Settings.Advanced.General.ProcessPriority="Process Priority"
|
||||
Basic.Settings.Advanced.General.ProcessPriority.High="High"
|
||||
Basic.Settings.Advanced.General.ProcessPriority.AboveNormal="Above Normal"
|
||||
Basic.Settings.Advanced.General.ProcessPriority.Normal="Normal"
|
||||
Basic.Settings.Advanced.General.ProcessPriority.BelowNormal="Below Normal"
|
||||
Basic.Settings.Advanced.General.ProcessPriority.Idle="Idle"
|
||||
Basic.Settings.Advanced.FormatWarning="Warning: Color formats other than NV12 are primarily intended for recording, and are not recommended when streaming. Streaming may incur increased CPU usage due to color format conversion."
|
||||
Basic.Settings.Advanced.Audio.BufferingTime="Audio Buffering Time"
|
||||
|
@ -212,6 +212,8 @@ void SetProcessPriority(const char *priority)
|
||||
SetPriorityClass(GetCurrentProcess(), ABOVE_NORMAL_PRIORITY_CLASS);
|
||||
else if (strcmp(priority, "Normal") == 0)
|
||||
SetPriorityClass(GetCurrentProcess(), NORMAL_PRIORITY_CLASS);
|
||||
else if (strcmp(priority, "BelowNormal") == 0)
|
||||
SetPriorityClass(GetCurrentProcess(), BELOW_NORMAL_PRIORITY_CLASS);
|
||||
else if (strcmp(priority, "Idle") == 0)
|
||||
SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS);
|
||||
}
|
||||
|
@ -467,6 +467,7 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
|
||||
PROCESS_PRIORITY("High"),
|
||||
PROCESS_PRIORITY("AboveNormal"),
|
||||
PROCESS_PRIORITY("Normal"),
|
||||
PROCESS_PRIORITY("BelowNormal"),
|
||||
PROCESS_PRIORITY("Idle")
|
||||
};
|
||||
#undef PROCESS_PRIORITY
|
||||
|
Loading…
x
Reference in New Issue
Block a user