mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-16 10:40:59 +00:00
Always use display scaling with the KMSDRM video driver
This commit is contained in:
@@ -1432,9 +1432,13 @@ void Session::updateOptimalWindowDisplayMode()
|
||||
|
||||
// On devices with slow GPUs, we will try to match the display mode
|
||||
// to the video stream to offload the scaling work to the display.
|
||||
//
|
||||
// We also try to match the video resolution if we're using KMSDRM,
|
||||
// because scaling on the display is generally higher quality than
|
||||
// scaling performed by drmModeSetPlane().
|
||||
bool matchVideo;
|
||||
if (!Utils::getEnvironmentVariableOverride("MATCH_DISPLAY_MODE_TO_VIDEO", &matchVideo)) {
|
||||
matchVideo = WMUtils::isGpuSlow();
|
||||
matchVideo = WMUtils::isGpuSlow() || QString(SDL_GetCurrentVideoDriver()) == "KMSDRM";
|
||||
}
|
||||
|
||||
bestMode = desktopMode;
|
||||
|
||||
Reference in New Issue
Block a user