mirror of
https://github.com/encounter/SDL.git
synced 2025-06-16 19:43:47 +00:00
switch: lower down thread priority for SDL_THREAD_PRIORITY_HIGH
major speed improvement when audio is used
This commit is contained in:
parent
c465ab9b4d
commit
0c22a3c059
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user