From e73c5ecc896c14fa43b19e42e5b24c79766cdb44 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 18 Feb 2013 21:47:43 +0300 Subject: Change process priority depend on game state. implimented only for windows version. --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 0266dde21..a7817d31a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -33,6 +33,7 @@ #include "utils/mkdir.h" #endif #include "utils/paths.h" +#include "utils/process.h" #include "utils/physfstools.h" #include "utils/xml.h" @@ -264,6 +265,7 @@ int main(int argc, char *argv[]) #ifdef WIN32 SetCurrentDirectory(PhysFs::getBaseDir()); #endif + setPriority(true); Client client(options); if (!options.testMode) { -- cgit v1.2.3-70-g09d2