From d3c23b55dcf14d852d735f59625d803512606b09 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 30 Nov 2025 22:23:09 -0600 Subject: [PATCH] Disable the VAAPI RFI latency workaround by default I can no longer reproduce this issue on the same system running Ubuntu 24.04 with the core22-based edge channel snap anymore. --- app/streaming/video/ffmpeg-renderers/vaapi.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/streaming/video/ffmpeg-renderers/vaapi.cpp b/app/streaming/video/ffmpeg-renderers/vaapi.cpp index 03f5a66a..7f6e09c1 100644 --- a/app/streaming/video/ffmpeg-renderers/vaapi.cpp +++ b/app/streaming/video/ffmpeg-renderers/vaapi.cpp @@ -418,7 +418,11 @@ VAAPIRenderer::initialize(PDECODER_PARAMETERS params) // The Snap (core22) and Focal/Jammy Mesa drivers have a bug that causes // a large amount of video latency when using more than one reference frame // and severe rendering glitches on my Ryzen 3300U system. - m_HasRfiLatencyBug = vendorStr.contains("Gallium", Qt::CaseInsensitive) && qgetenv("IGNORE_RFI_LATENCY_BUG") != "1"; + // + // This seems to no longer be a problem on Ubuntu 24.04 (even using core22), + // so let's disable this workaround by default in preparation for permanent + // removal if nobody encounters this again for a while. + m_HasRfiLatencyBug = vendorStr.contains("Gallium", Qt::CaseInsensitive) && qgetenv("HAS_RFI_LATENCY_BUG") == "1"; if (m_HasRfiLatencyBug) { SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION, "VAAPI driver is affected by RFI latency bug");