mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 14:40:56 +00:00
Prefer H.264 for higher decoding performance in very high load situations
This commit is contained in:
@@ -339,6 +339,16 @@ Session::Session(NvComputer* computer, NvApp& app)
|
|||||||
m_StreamConfig.width,
|
m_StreamConfig.width,
|
||||||
m_StreamConfig.height,
|
m_StreamConfig.height,
|
||||||
m_StreamConfig.fps);
|
m_StreamConfig.fps);
|
||||||
|
|
||||||
|
// Oddly enough, the H.264 encoder on my GTX 1080 is actually more
|
||||||
|
// performant than the HEVC encoder (especially because split frame encode
|
||||||
|
// is disabled for HEVC by moonlight-common-c). Use H.264 for 1440p 100 FPS and above.
|
||||||
|
if (m_StreamConfig.width * m_StreamConfig.height * m_StreamConfig.fps >= 2560 * 1440 * 100) {
|
||||||
|
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||||
|
"Preferring H.264 for higher performance");
|
||||||
|
m_StreamConfig.supportsHevc = false;
|
||||||
|
}
|
||||||
|
|
||||||
m_StreamConfig.enableHdr = false;
|
m_StreamConfig.enableHdr = false;
|
||||||
break;
|
break;
|
||||||
case StreamingPreferences::VCC_FORCE_H264:
|
case StreamingPreferences::VCC_FORCE_H264:
|
||||||
|
|||||||
Submodule moonlight-common-c/moonlight-common-c updated: 884b8d0a95...8743ce5d08
Reference in New Issue
Block a user