Adjust thread priorities based on recent refactoring
This commit is contained in:
parent
5ccb4a8b7f
commit
052194714a
4 changed files with 14 additions and 8 deletions
|
|
@ -1007,14 +1007,6 @@ void Session::exec(int displayOriginX, int displayOriginY)
|
|||
// sleep precision and more accurate callback timing.
|
||||
SDL_SetHint(SDL_HINT_TIMER_RESOLUTION, "1");
|
||||
|
||||
// Raise the priority of the main thread, since it handles
|
||||
// time-sensitive video rendering
|
||||
if (SDL_SetThreadPriority(SDL_THREAD_PRIORITY_HIGH) < 0) {
|
||||
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"Unable to set main thread to high priority: %s",
|
||||
SDL_GetError());
|
||||
}
|
||||
|
||||
int currentDisplayIndex = SDL_GetWindowDisplayIndex(m_Window);
|
||||
|
||||
// Now that we're about to stream, any SDL_QUIT event is expected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue