Skip to content

Commit

Permalink
Fix failing to set high priority for threads on Linux desktop.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slouken committed Nov 9, 2020
1 parent abf9dfd commit 94924f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/linux/SDL_threadprio.c
Expand Up @@ -106,7 +106,8 @@ rtkit_initialize_thread()
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);
if (err)
{
Expand Down

0 comments on commit 94924f0

Please sign in to comment.