From 1b0a55f44ccbfb4fb9887fc6377fd634f03098ff Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 23 Jul 2011 05:44:55 -0700 Subject: Use real-time priority by default on Windows It's actually "time-critical", but it seems normal priority doesn't cope as well when the system is under moderate load. --- Alc/ALc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Alc') diff --git a/Alc/ALc.c b/Alc/ALc.c index 9423ebc3..e778c95e 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -560,7 +560,11 @@ static void alc_initconfig(void) InitHrtf(); +#ifdef _WIN32 + RTPrioLevel = GetConfigValueInt(NULL, "rt-prio", 1); +#else RTPrioLevel = GetConfigValueInt(NULL, "rt-prio", 0); +#endif DefaultResampler = GetConfigValueInt(NULL, "resampler", RESAMPLER_DEFAULT); if(DefaultResampler >= RESAMPLER_MAX || DefaultResampler <= RESAMPLER_MIN) -- cgit v1.2.3