From 8cfe3a6180e0f8b15b3f7a4e17f56263a584aba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sun, 6 Sep 2026 07:00:55 +0300 Subject: [PATCH] perf(av1): cap the NEARMV DRL search at index 2 Index 3 fires 4 times in a whole clip ladder and costs a trial set on every block whose stack is four deep: 2160p wall 8.7 -> 7.3 s at identical BD (libaom 218.7, rav1e 164.7). --- crates/ec-av1/src/encode.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ec-av1/src/encode.rs b/crates/ec-av1/src/encode.rs index 076331dd..5615a079 100644 --- a/crates/ec-av1/src/encode.rs +++ b/crates/ec-av1/src/encode.rs @@ -3448,7 +3448,7 @@ fn search_inter_block( ), ]; let near_bits = not_new + not_zero + symbol_bits(&cdf::REF_MV[stack.ref_mv_ctx], 1); - for idx in 1..=3usize { + for idx in 1..=2usize { if let Some(e) = stack.entries.get(idx) { cands.push(( e.mv,