forge
Explore
Log in

Don't you dare go Hollow

The 64x64 root ships at presets 0..=3, off from 4

Browse files at this commit

71bf2a8b9e590b1d714bf29822bf08f04439390cAhmet Kaan GümüşParent: be3d4bc
  • perf
    • the 64x64 root ships at presets 0..=3, off from 4
Show full message
perf(av1): the 64x64 root ships at presets 0..=3, off from 4

Measured on the native gate at EC_AV1_SPEED=6 (two arms side by side): ON
costs film A +55.1/+24.8 -> +64.5/+37.5 and film B +91.5/+53.4 ->
+114.6/+71.5 for -16%/-36% wall, because the trial's early-out rides
SPLIT_RD -- at 0.5 a superblock is taken whole with its quadrants never
searched and film B's q150 point drops 1.2 dB. Presets 1..=3 keep SPLIT_RD
at 0.125, so they get the early-out that was measured good.
crates/ec-av1/src/speed.rsmodified+26 -4
@@ -144,10 +144,32 @@ pub(crate) fn at<T: Copy>(table: &[T; 11]) -> T {
144 // ---------------------------------------------------------------------------144 // ---------------------------------------------------------------------------
145 145
146 /// `encode::B64_ROOT`: the 64x64 `PARTITION_NONE` skip trial at the146 /// `encode::B64_ROOT`: the 64x64 `PARTITION_NONE` skip trial at the
147-/// superblock root. On at every preset -- it is a wall SAVER as well as a bit147+/// superblock root. At preset 0 it is a bit saver AND a wall saver -- every
148-/// saver, since a superblock the trial takes is never searched at 32x32 (see148+/// native row improves on both columns (film A +44.2/+15.7 -> +43.0/+15.0,
149-/// the lane report for the measured wall at preset 0 and 6).149+/// film B +70.5/+35.2 -> +64.7/+34.0, screen +48.2/-16.4 -> +33.4/-23.8) at
150-pub(crate) const B64_ROOT: [bool; 11] = [crate::encode::B64_ROOT; 11];150+/// -4% to -20% wall on four of the five rows.
151+///
152+/// MEASURED OFF from preset 4 up (lane-b64, native gate at `EC_AV1_SPEED=6`,
153+/// two arms side by side): ON costs film A +55.1/+24.8 -> +64.5/+37.5 and
154+/// film B +91.5/+53.4 -> +114.6/+71.5 for -16%/-36% wall. The cause is the
155+/// trial's own early-out, which rides [`SPLIT_RD`]: at 0.5 (preset 6) a
156+/// superblock is taken whole without its quadrants ever being searched, and
157+/// film B's q150 point loses 1.2 dB. Presets 1..=3 keep it because they keep
158+/// `SPLIT_RD` at 0.125, i.e. the early-out they get is the measured one;
159+/// 4 and up switch it off with `SPLIT_RD`'s first step.
160+pub(crate) const B64_ROOT: [bool; 11] = [
161+ crate::encode::B64_ROOT,
162+ true,
163+ true,
164+ true,
165+ false,
166+ false,
167+ false,
168+ false,
169+ false,
170+ false,
171+ false,
172+];
151 173
152 /// `encode::SPLIT_RD_THRESHOLD`: how cheap a block has to be before its split174 /// `encode::SPLIT_RD_THRESHOLD`: how cheap a block has to be before its split
153 /// trial is withheld. The single biggest wall lever in the tile search.175 /// trial is withheld. The single biggest wall lever in the tile search.