Temporarily switch to control protocol 9 on GFE 3.22

This commit is contained in:
Cameron Gutman 2021-04-09 07:45:17 -05:00
parent 415d97aa4d
commit 9a706fd78c

View File

@ -142,9 +142,19 @@ static int addGen4Options(PSDP_OPTION* head, char* addrStr) {
static int addGen5Options(PSDP_OPTION* head) {
int err = 0;
// We want to use the new ENet connections for control and input
err |= addAttributeString(head, "x-nv-general.useReliableUdp", "1");
err |= addAttributeString(head, "x-nv-ri.useControlChannel", "1");
if (APP_VERSION_AT_LEAST(7, 1, 431)) {
// 0x20 enables audio encryption (which we don't support yet)
// 0x80 enables remote input encryption (which we do want)
err |= addAttributeString(head, "x-nv-general.featureFlags", "135");
// Ask for the unencrypted control protocol for now
err |= addAttributeString(head, "x-nv-general.useReliableUdp", "9");
}
else {
// We want to use the new ENet connections for control and input
err |= addAttributeString(head, "x-nv-general.useReliableUdp", "1");
err |= addAttributeString(head, "x-nv-ri.useControlChannel", "1");
}
// Disable dynamic resolution switching
err |= addAttributeString(head, "x-nv-vqos[0].drc.enable", "0");