Reduce polling rate on SL due to CPU performance limitations
This commit is contained in:
parent
2bf552f801
commit
4f2fe5c988
1 changed files with 6 additions and 0 deletions
|
|
@ -1037,7 +1037,13 @@ void Session::exec(int displayOriginX, int displayOriginY)
|
||||||
// blocks this thread too long for high polling rate mice and high
|
// blocks this thread too long for high polling rate mice and high
|
||||||
// refresh rate displays.
|
// refresh rate displays.
|
||||||
if (!SDL_PollEvent(&event)) {
|
if (!SDL_PollEvent(&event)) {
|
||||||
|
#ifndef STEAM_LINK
|
||||||
SDL_Delay(1);
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
switch (event.type) {
|
switch (event.type) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue