Avoid setting timer resolution to 1 ms while Moonlight is not streaming
This commit is contained in:
parent
611d9ac1ba
commit
cf2d8f71d6
2 changed files with 10 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue