switch: lower down thread priority for SDL_THREAD_PRIORITY_HIGH

major speed improvement when audio is used
This commit is contained in:
Cpasjuste 2019-01-12 00:31:33 +01:00 committed by Dave Murphy
parent c465ab9b4d
commit 0c22a3c059

View File

@ -73,7 +73,7 @@ int SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority)
Result res; Result res;
if (priority == SDL_THREAD_PRIORITY_HIGH) { if (priority == SDL_THREAD_PRIORITY_HIGH) {
res = svcSetThreadPriority(CUR_THREAD_HANDLE, 0x1C); res = svcSetThreadPriority(CUR_THREAD_HANDLE, 0x2B);
} }
else { else {
// 0x3B = preemptive threading // 0x3B = preemptive threading