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(
3448 ),3448 ),
3449 ];3449 ];
3450 let near_bits = not_new + not_zero + symbol_bits(&cdf::REF_MV[stack.ref_mv_ctx], 1);3450 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 {
3452 if let Some(e) = stack.entries.get(idx) {3452 if let Some(e) = stack.entries.get(idx) {
3453 cands.push((3453 cands.push((
3454 e.mv,3454 e.mv,