From 407aa860e79d1d2f3535bf5381c8f8822fec0637 Mon Sep 17 00:00:00 2001 From: driAn Date: Sun, 24 Aug 2008 09:35:53 +0000 Subject: [PATCH] run ac with high-priority on windows git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2371 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/src/main.cpp b/source/src/main.cpp index c8860d59..e9b5805a 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -503,6 +503,10 @@ int main(int argc, char **argv) } initing = NOT_INITING; + #ifdef WIN32 + SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); + #endif + initlog("sdl"); int par = 0; #ifdef _DEBUG