Use larger packets when streaming to local PCs

This commit is contained in:
Cameron Gutman 2018-07-16 01:12:53 -07:00
parent 12432ef945
commit 641b50b7ee

View file

@ -92,7 +92,6 @@ Session::Session(NvComputer* computer, NvApp& app)
m_StreamConfig.height = m_Preferences.height;
m_StreamConfig.fps = m_Preferences.fps;
m_StreamConfig.bitrate = m_Preferences.bitrateKbps;
m_StreamConfig.packetSize = 1024;
m_StreamConfig.hevcBitratePercentageMultiplier = 75;
for (unsigned int i = 0; i < sizeof(m_StreamConfig.remoteInputAesKey); i++) {
m_StreamConfig.remoteInputAesKey[i] =
@ -136,6 +135,20 @@ Session::Session(NvComputer* computer, NvApp& app)
m_StreamConfig.enableHdr = true;
break;
}
if (computer->activeAddress == computer->remoteAddress) {
m_StreamConfig.streamingRemotely = 1;
}
else {
m_StreamConfig.streamingRemotely = 0;
}
if (computer->activeAddress == computer->localAddress) {
m_StreamConfig.packetSize = 1392;
}
else {
m_StreamConfig.packetSize = 1024;
}
}
bool Session::validateLaunch()