Skip to content

Commit

Permalink
Reduce process priority to limit impact to GGST
Browse files Browse the repository at this point in the history
  • Loading branch information
optix2000 committed Aug 8, 2021
1 parent 69dfa7a commit 79e258b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,13 @@ func main() {
}
}()

handle := windows.CurrentProcess()
err = windows.SetPriorityClass(handle, windows.BELOW_NORMAL_PRIORITY_CLASS)
if err != nil {
fmt.Println(err)
}
windows.CloseHandle(handle)

if !*noLaunch {
_, err := patcher.GetProc(GGStriveExe)
if err != nil {
Expand Down

0 comments on commit 79e258b

Please sign in to comment.