Avoid setting timer resolution to 1 ms while Moonlight is not streaming

This commit is contained in:
Cameron Gutman 2018-08-13 22:23:05 -07:00
commit cf2d8f71d6
2 changed files with 10 additions and 0 deletions

View file

@ -200,6 +200,11 @@ int main(int argc, char *argv[])
SDL_GetError());
}
// Avoid the default behavior of changing the timer resolution to 1 ms.
// We don't want this all the time that Moonlight is open. We will set
// it manually when we start streaming.
SDL_SetHint(SDL_HINT_TIMER_RESOLUTION, "0");
int err = app.exec();
SDL_Quit();