]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
Linux dedicated server: set nice -19 while spawning server (can be turned off by...
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index 85c07db6d9d6ecfee81e26d8500f4351f1727fa0..ff250373870e77b459907c6c411ba30b0ea956dd 100644 (file)
--- a/host.c
+++ b/host.c
@@ -94,6 +94,9 @@ aborts the current host frame and goes on with the next one
 */
 void Host_AbortCurrentFrame(void)
 {
+       // in case we were previously nice, make us mean again
+       Sys_MakeProcessMean();
+
        longjmp (host_abortframe, 1);
 }
 
@@ -1161,6 +1164,9 @@ static void Host_Init (void)
        dpsnprintf (engineversion, sizeof (engineversion), "%s %s %s", gamename, os, buildstring);
        Con_Printf("%s\n", engineversion);
 
+       // initialize process nice level
+       Sys_InitProcessNice();
+
        // initialize ixtable
        Mathlib_Init();