Skip to content

Commit d8e747c

Browse files
author
RandomEngy
committed
Lowering process priority to BelowNormal when encoding.
1 parent c8cba43 commit d8e747c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

VidCoder/ViewModel/MainViewModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,10 +1156,12 @@ public bool Encoding
11561156

11571157
if (value)
11581158
{
1159+
Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.BelowNormal;
11591160
SystemSleepManagement.PreventSleep();
11601161
}
11611162
else
11621163
{
1164+
Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.Normal;
11631165
this.EncodeSpeedDetailsAvailable = false;
11641166
SystemSleepManagement.AllowSleep();
11651167
}

0 commit comments

Comments
 (0)