From 98bf425474ce717b429a1ad1de3ef04b4a0945d8 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 29 Aug 2016 12:45:08 -0700 Subject: [PATCH] Revert "Merge pull request #459 from BtbN/nvenc_delay_perf" This reverts commit e4e06afc0a7f1a093dde6318be5fb84ef514e64e, reversing changes made to 388701bd26191e7ddb01b595d8b02c38ce187599. --- ObsNvenc/src/NVENCEncoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ObsNvenc/src/NVENCEncoder.cpp b/ObsNvenc/src/NVENCEncoder.cpp index 4ace6a54..b6540038 100644 --- a/ObsNvenc/src/NVENCEncoder.cpp +++ b/ObsNvenc/src/NVENCEncoder.cpp @@ -209,7 +209,7 @@ void NVENCEncoder::init() encoderPreset = NV_ENC_PRESET_HQ_GUID; is2PassRC = false; } - if (height > 720 || (height == 720 && fps > 60)) + if (height > 720 || (height == 720 && fps > 30)) { encoderPreset = NV_ENC_PRESET_LOW_LATENCY_HQ_GUID; is2PassRC = false; @@ -590,7 +590,7 @@ bool NVENCEncoder::Encode(LPVOID picIn, List &packets, List= maxSurfaceCount - 1)) + if (!outputSurfaceQueueReady.empty()) { NVENCEncoderOutputSurface *qSurf = outputSurfaceQueueReady.front(); outputSurfaceQueueReady.pop();