mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 22:23:31 +00:00
Reduce polling rate on SL due to CPU performance limitations
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user