From 0c22a3c059aae86b47a7147fc9940f74b69d56bf Mon Sep 17 00:00:00 2001 From: Cpasjuste Date: Sat, 12 Jan 2019 00:31:33 +0100 Subject: [PATCH] switch: lower down thread priority for SDL_THREAD_PRIORITY_HIGH major speed improvement when audio is used --- src/thread/switch/SDL_systhread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread/switch/SDL_systhread.c b/src/thread/switch/SDL_systhread.c index 4814f2a76..31e4904b1 100644 --- a/src/thread/switch/SDL_systhread.c +++ b/src/thread/switch/SDL_systhread.c @@ -73,7 +73,7 @@ int SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority) Result res; if (priority == SDL_THREAD_PRIORITY_HIGH) { - res = svcSetThreadPriority(CUR_THREAD_HANDLE, 0x1C); + res = svcSetThreadPriority(CUR_THREAD_HANDLE, 0x2B); } else { // 0x3B = preemptive threading