From d3ea9662bf4b3207053336ccc91727399bf5a0da Mon Sep 17 00:00:00 2001 From: Quantum Date: Fri, 13 Aug 2021 02:01:31 -0400 Subject: [PATCH] [host] nvfbc: remove rectangles that are entirely contained in others This makes nvfbc report less useless damage and makes the client run faster. --- host/platform/Windows/capture/NVFBC/src/nvfbc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/host/platform/Windows/capture/NVFBC/src/nvfbc.c b/host/platform/Windows/capture/NVFBC/src/nvfbc.c index 09e637f9..a6e7705f 100644 --- a/host/platform/Windows/capture/NVFBC/src/nvfbc.c +++ b/host/platform/Windows/capture/NVFBC/src/nvfbc.c @@ -428,6 +428,8 @@ static void updateDamageRects(CaptureFrame * frame) }; } + rectId = rectsRejectContained(frame->damageRects, rectId); + done: frame->damageRectsCount = rectId; }