aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-07-23 05:44:55 -0700
committerChris Robinson <[email protected]>2011-07-23 05:44:55 -0700
commit1b0a55f44ccbfb4fb9887fc6377fd634f03098ff (patch)
tree4aa2295cc40b1e93bf1f6d3ad9790b6eb2b6040d /Alc
parent14b359beb0f7a25ac98a8e4dc8de560e4258e34e (diff)
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.
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c4
1 files changed, 4 insertions, 0 deletions
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)