From 4f2fe5c988c064c7e1ced9ac513065b27714166d Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 28 Apr 2019 13:04:58 -0700 Subject: [PATCH] Reduce polling rate on SL due to CPU performance limitations --- app/streaming/session.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index eca57380..e6358903 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -1037,7 +1037,13 @@ void Session::exec(int displayOriginX, int displayOriginY) // blocks this thread too long for high polling rate mice and high // refresh rate displays. if (!SDL_PollEvent(&event)) { +#ifndef STEAM_LINK SDL_Delay(1); +#else + // Waking every 1 ms to process input is too much for the low performance + // ARM core in the Steam Link, so we will wait 10 ms instead. + SDL_Delay(10); +#endif continue; } switch (event.type) {