forge
Explore
Log in

Don't you dare go Hollow

Cap the NEARMV DRL search at index 2

Browse files at this commit

8cfe3a6180e0f8b15b3f7a4e17f56263a584aba3Ahmet Kaan GümüşParent: 9147adb
  • perf
    • cap the NEARMV DRL search at index 2
Show full message
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.rsmodified+1 -1
@@ -3448,7 +3448,7 @@ fn search_inter_block(
34483448 ),
34493449 ];
34503450 let near_bits = not_new + not_zero + symbol_bits(&cdf::REF_MV[stack.ref_mv_ctx], 1);
3451- for idx in 1..=3usize {
3451+ for idx in 1..=2usize {
34523452 if let Some(e) = stack.entries.get(idx) {
34533453 cands.push((
34543454 e.mv,