From 2cf0c4f8aaedbdfddfa71322e079685445edafc2 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 21 Feb 2026 22:42:22 -0500 Subject: [PATCH] Switch horses only when certain. --- Outputs/ScanTargets/BufferingScanTarget.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Outputs/ScanTargets/BufferingScanTarget.cpp b/Outputs/ScanTargets/BufferingScanTarget.cpp index 14f5f6d9d..ea02ae82e 100644 --- a/Outputs/ScanTargets/BufferingScanTarget.cpp +++ b/Outputs/ScanTargets/BufferingScanTarget.cpp @@ -253,10 +253,11 @@ void BufferingScanTarget::announce( } return true; }; - is_interlaced_.store( - !similar_enough(0, 1) && similar_enough(0, 2) && similar_enough(1, 2), - std::memory_order_relaxed - ); + if(!similar_enough(0, 1) && similar_enough(0, 2) && similar_enough(1, 2)) { + is_interlaced_.store(true, std::memory_order_relaxed); + } else if(similar_enough(0, 1)) { + is_interlaced_.store(false, std::memory_order_relaxed); + } } // Proceed from here only if a change in visibility has occurred.