mirror of https://github.com/encounter/SDL.git
Fix failing to set high priority for threads on Linux desktop.
Debugging inside rtkit showed we were failing the RLIMIT_RTTIME check, now that we're asking for realtime and not just high-priority due to a change in SDL. Between that and the DBus code in SDL being wrong in previous changelist I'm not sure how this could have ever worked.
This commit is contained in:
parent
abf9dfd5c2
commit
94924f012b
|
@ -106,7 +106,8 @@ rtkit_initialize_thread()
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
rlimit.rlim_cur = rlimit.rlim_max;
|
// Current rtkit allows a max of 200ms right now
|
||||||
|
rlimit.rlim_cur = rlimit.rlim_max = 100000;
|
||||||
err = setrlimit(nLimit, &rlimit);
|
err = setrlimit(nLimit, &rlimit);
|
||||||
if (err)
|
if (err)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue