diff --git a/compatibility.md b/compatibility.md index 33960f632f86409e0b28cabfdfff75993d2da9e6..b66a7cf2ffe7fccc896874274306cfd38fdef1a9 100644 --- a/compatibility.md +++ b/compatibility.md @@ -10,15 +10,17 @@ Fission currently supports **192** built-in tool types across 2D/3D compositing | --- | --- | | **Supported Tools** | **192** | | **Modifiers & Animation** | **8** | -| **Accuracy across [paper clover](https://paperclover.net)'s compositions** | **99.5%** | +| **Accuracy across [paper clover](https://paperclover.net)'s compositions** | **99.4%** | | **Supported Tool Accuracy** | **99.7%** | -| **Supported Tools with 100% Accuracy** | **63** | +| **Supported Tools with 100% Accuracy** | **14** | +| **Supported Tools with >99.9% Accuracy** | **45** | | **Coverage of Fusion's Built-in Tools** | **42.3%** | | **Native Reactor Fuse Implementations** | **1.5%** (+ dynamic Lua/DCTL runtime) | ### Key -- `✅ 100.0%` — Pixel-exact match against Blackmagic Fusion Studio 21.1 (`≥ 99.95%` mean accuracy across fuzzed parameter combinations). +- `✅ 100%` — Literal `100%` pixel-exact match against Blackmagic Fusion Studio 21.1 across every fuzzed frame, with no known unimplemented paths. Anything `< 100%` (or with known ways to differ) is rounded down (capped at `99.99%`). +- `~` — Estimated from unit tests or Snow Globe probes (not yet measured in `scripts/accuracy_ledger.json`). - `🎲` — Stochastic / PRNG-driven (statistically and visually matched; Fusion's internal random seed is irreproducible). - `⚠️` — Diverging implementation (intentionally uses a different algorithm or UX from Fusion) or a practical parity ceiling noted in **Notes**. @@ -26,125 +28,125 @@ Fission currently supports **192** built-in tool types across 2D/3D compositing | Tool | Accuracy | Notes | | --- | --- | --- | -| `Background` | ✅ 100.0% | — | -| `FastNoise` | ✅ 100.0% | — | -| `Plasma` | 99.9% | Minor phase/gradient rounding on high-frequency rings. | +| `Background` | ✅ 100% | — | +| `FastNoise` | 99.99% | — | +| `Plasma` | 99.8% | Minor phase/gradient rounding on high-frequency rings. | | `TextPlus` | ⚠️ 99.4% | Subpixel glyph AA/shaping differs from Fusion's platform font engine. | -| `Loader` | ✅ 100.0% | — | -| `DaySky` | 99.9% | Minor twilight/horizon atmospheric scattering differences. | -| `Mandel` | 99.8%–100.0% | — | -| `Fuse.CheckerPieceGenerator` | ✅ 100.0% | — | -| `Fuse.HexagonTiles` | ✅ 100.0% | — | -| `Fuse.Hexagon` | 99.8%–100.0% | — | +| `Loader` | ~99.99% | — | +| `DaySky` | 99.8% | Minor twilight/horizon atmospheric scattering differences. | +| `Mandel` | ~99.8%–99.99% | — | +| `Fuse.CheckerPieceGenerator` | ~99.99% | — | +| `Fuse.HexagonTiles` | ~99.99% | — | +| `Fuse.Hexagon` | ~99.8%–99.99% | — | | `Fuse.Lightning` | 🎲 | Procedural branch PRNG seed differs from Lua Fuse. | -| `Fuse.VORONOI_DIAGRAM` | 99.8%–100.0% | — | +| `Fuse.VORONOI_DIAGRAM` | ~99.8%–99.99% | — | ## Compositing & Blending | Tool | Accuracy | Notes | | --- | --- | --- | -| `Merge` | ✅ 100.0% | — | -| `MultiMerge` | 99.7%–100.0% | — | -| `Dissolve` | ✅ 100.0% | — | -| `Fuse.Wipe` | 99.8%–100.0% | — | -| `Paint` | 98.8%–100.0% | Clone/Smear/Emboss apply modes and non-round image brushes not yet implemented. | -| `PolylineStroke` | 99.7%–100.0% | Rendered only inside `Paint` / `PaintMask`. | -| `Multistroke` | 98.8%–99.9% | Rendered only inside `Paint` / `PaintMask`. | -| `Shadow` | ✅ 100.0% | — | +| `Merge` | 99.99% | — | +| `MultiMerge` | ~99.7%–99.99% | — | +| `Dissolve` | ✅ 100% | — | +| `Fuse.Wipe` | ~99.8%–99.99% | — | +| `Paint` | ~98.8%–99.99% | Clone/Smear/Emboss apply modes and non-round image brushes not yet implemented. | +| `PolylineStroke` | ~99.7%–99.99% | Rendered only inside `Paint` / `PaintMask`. | +| `Multistroke` | ~98.8%–99.90% | Rendered only inside `Paint` / `PaintMask`. | +| `Shadow` | 99.99% | — | ## Color & Depth | Tool | Accuracy | Notes | | --- | --- | --- | -| `BrightnessContrast` | ✅ 100.0% | — | -| `ColorCorrector` | 99.9% | Histogram/Match/Suppress tabs not implemented. | -| `ColorGain` | ✅ 100.0% | — | -| `ColorCurves` | ✅ 100.0% | — | -| `HueCurves` | ✅ 100.0% | — | -| `GamutConvert` | ✅ 100.0% | — | -| `AcesTransform` | 99.6%–100.0% | — | -| `ColorSpace` | 99.8%–100.0% | — | -| `ColorMatrix` | ✅ 100.0% | — | -| `WhiteBalance` | 99.8%–100.0% | — | -| `AutoGain` | 99.8%–100.0% | — | -| `ColorBalance` | 99.8%–100.0% | — | -| `SoftClip` | ✅ 100.0% | — | -| `InvertColor` | ✅ 100.0% | — | -| `AlphaMultiply` | 99.8%–100.0% | — | -| `AlphaDivide` | 99.1%–100.0% | Minor precision difference near zero alpha. | -| `PseudoColor` | 99.4%–99.6% | — | -| `ChannelBoolean` | 99.3% | Unused auxiliary extra-channel slots and missing Coverage mask stripes differ. | -| `ChangeDepth` | 99.9% | Random dither PRNG seed differs; collapsed to `Rgba8Unorm` in `Fast` mode. | -| `Fuse.Colorize` | 99.5%–99.9% | — | +| `BrightnessContrast` | ✅ 100% | — | +| `ColorCorrector` | 99.8% | Histogram/Match/Suppress tabs not implemented. | +| `ColorGain` | 99.99% | — | +| `ColorCurves` | ✅ 100% | — | +| `HueCurves` | ✅ 100% | — | +| `GamutConvert` | ✅ 100% | — | +| `AcesTransform` | ~99.6%–99.99% | — | +| `ColorSpace` | ~99.8%–99.99% | — | +| `ColorMatrix` | ~99.99% | — | +| `WhiteBalance` | ~99.8%–99.99% | — | +| `AutoGain` | ~99.8%–99.99% | — | +| `ColorBalance` | ~99.8%–99.99% | — | +| `SoftClip` | ~99.99% | — | +| `InvertColor` | ~99.99% | — | +| `AlphaMultiply` | ~99.8%–99.99% | — | +| `AlphaDivide` | ~99.1%–99.99% | Minor precision difference near zero alpha. | +| `PseudoColor` | ~99.4%–99.6% | — | +| `ChannelBoolean` | 99.2% | Unused auxiliary extra-channel slots and missing Coverage mask stripes differ. | +| `ChangeDepth` | 99.90% | Random dither PRNG seed differs; collapsed to `Rgba8Unorm` in `Fast` mode. | +| `Fuse.Colorize` | ~99.5%–99.90% | — | ## Keying | Tool | Accuracy | Notes | | --- | --- | --- | -| `LumaKeyer` | 99.9% | — | +| `LumaKeyer` | 99.92% | — | | `UltraKeyer` | 99.6% | Minor matte contract/expand fringe differences. | -| `DeltaKeyer` | 99.9% | — | -| `DifferenceKeyer` | 99.5%–99.9% | — | -| `ChromaKeyer` | 99.4%–99.9% | — | -| `CleanPLate` | 99.4%–99.9% | — | -| `MatteControl` | 99.6%–99.9% | — | -| `Fuse.Cryptomatte` | ✅ 100.0% | — | +| `DeltaKeyer` | 99.90% | — | +| `DifferenceKeyer` | ~99.5%–99.90% | — | +| `ChromaKeyer` | ~99.4%–99.90% | — | +| `CleanPLate` | ~99.4%–99.90% | — | +| `MatteControl` | ~99.6%–99.90% | — | +| `Fuse.Cryptomatte` | ~99.99% | — | ## Blur, Sharpen & Glow | Tool | Accuracy | Notes | | --- | --- | --- | | `Blur` | 99.8% | Downsampled in `Fast` mode; minor Box border rounding. | -| `Defocus` | 99.6%–99.9% | — | -| `DepthBlur` | 99.5%–99.9% | — | -| `Fog` | 99.6%–99.9% | — | -| `Highlight` | 99.5%–99.9% | — | -| `HotSpot` | 99.5%–99.9% | — | -| `RankFilter` | 99.7%–100.0% | — | +| `Defocus` | ~99.6%–99.90% | — | +| `DepthBlur` | ~99.5%–99.90% | — | +| `Fog` | ~99.6%–99.90% | — | +| `Highlight` | ~99.5%–99.90% | — | +| `HotSpot` | ~99.5%–99.90% | — | +| `RankFilter` | ~99.7%–99.99% | — | | `Sharpen` | 99.7% | Minor kernel radius rounding vs Fusion. | -| `UnsharpMask` | 99.8%–100.0% | — | -| `Filter` | 99.8% | Minor kernel normalization differences on non-default filter types. | -| `VariBlur` | 99.8% | — | -| `DirectionalBlur` | ✅ 100.0% | — | +| `UnsharpMask` | ~99.8%–99.99% | — | +| `Filter` | 99.7% | Minor kernel normalization differences on non-default filter types. | +| `VariBlur` | 99.7% | — | +| `DirectionalBlur` | 99.98% | — | | `Glow` | 99.5% | Fusion reads uninitialized memory stripes on missing Coverage mask (`MaskChannel=7`). | | `SoftGlow` | 99.8% | — | -| `Fuse.XGlow` | 99.2%–99.8% | Octave-capped in `Fast` mode. | -| `ErodeDilate` | ✅ 100.0% | — | -| `VectorMotionBlur` | ✅ 100.0% | — | -| `RemoveNoise` | ✅ 100.0% | — | -| `VectorDenoise` | 99.5%–99.9% | — | -| `Fuse.OCLRays` | 99.5%–99.9% | — | +| `Fuse.XGlow` | ~99.2%–99.8% | Octave-capped in `Fast` mode. | +| `ErodeDilate` | 99.99% | — | +| `VectorMotionBlur` | ~99.99% | — | +| `RemoveNoise` | 99.97% | — | +| `VectorDenoise` | ~99.5%–99.90% | — | +| `Fuse.OCLRays` | ~99.5%–99.90% | — | | `FilmGrain` | 🎲 96.3% | Per-frame PRNG seed differs from Fusion. | | `Grain` | 🎲 | Per-frame PRNG seed differs from Fusion. | -| `Fuse.Outline` | 99.5%–99.9% | — | -| `Fuse.XfChroma` | 99.5%–99.9% | — | +| `Fuse.Outline` | ~99.5%–99.90% | — | +| `Fuse.XfChroma` | ~99.5%–99.90% | — | | `Fuse.AlphaWeightedNoise` | 🎲 | Per-pixel PRNG seed differs from Lua `math.random`. | -| `Fuse.Crystallize` | ✅ 100.0% | — | +| `Fuse.Crystallize` | ~99.99% | — | ## Transform, Warp & Framing | Tool | Accuracy | Notes | | --- | --- | --- | -| `Transform` | ✅ 100.0% | — | -| `CameraShake` | 99.9% | Minor filter-method resampling differences. | -| `CornerPositioner` | 99.7% | Minor perspective filter resampling differences. | +| `Transform` | 99.97% | — | +| `CameraShake` | 99.8% | Minor filter-method resampling differences. | +| `CornerPositioner` | 99.6% | Minor perspective filter resampling differences. | | `PerspectivePositioner` | 99.7% | Minor resampling differences; Fusion Coverage mask stripes differ on `MaskChannel=7`. | -| `GridWarp` | 98.8%–99.6% | Magnet/Subdivision UI helpers not implemented. | -| `CoordSpace` | 99.8%–100.0% | — | -| `LensDistort` | 99.6%–99.9% | — | -| `DVE` | 99.7% | Minor 3D perspective edge AA differences. | -| `Displace` | 99.5% | Minor refraction edge/filter differences. | -| `Vortex` | 99.8% | Minor swirl boundary resampling differences. | -| `Drip` | 99.3% | High-frequency ripple phase rounding differs. | -| `Dent` | 99.6% | Minor radial falloff curve differences on non-default types. | -| `Fuse.Duplicate` | ✅ 100.0% | — | -| `Fuse.KScope` | ✅ 100.0% | — | +| `GridWarp` | ~98.8%–99.6% | Magnet/Subdivision UI helpers not implemented. | +| `CoordSpace` | ~99.8%–99.99% | — | +| `LensDistort` | ~99.6%–99.90% | — | +| `DVE` | 99.6% | Minor 3D perspective edge AA differences. | +| `Displace` | 99.4% | Minor refraction edge/filter differences. | +| `Vortex` | 99.7% | Minor swirl boundary resampling differences. | +| `Drip` | 99.2% | High-frequency ripple phase rounding differs. | +| `Dent` | 99.5% | Minor radial falloff curve differences on non-default types. | +| `Fuse.Duplicate` | 99.96% | — | +| `Fuse.KScope` | ~99.99% | — | | `Scale` | 99.8% | Minor non-default filter window differences. | -| `BetterResize` | 99.9% | Minor non-default filter window differences. | -| `Crop` | ✅ 100.0% | — | -| `Letterbox` | 99.8%–100.0% | — | -| `SetDomain` | 99.9% | Minor `Adjust` mode DoD clamping differences. | -| `Dimension.PlanarTransform` | ✅ 100.0% | — | +| `BetterResize` | 99.93% | Minor non-default filter window differences. | +| `Crop` | 99.99% | — | +| `Letterbox` | ~99.8%–99.99% | — | +| `SetDomain` | 99.8% | Minor `Adjust` mode DoD clamping differences. | +| `Dimension.PlanarTransform` | ~99.99% | — | ## Masks @@ -152,46 +154,46 @@ Fission currently supports **192** built-in tool types across 2D/3D compositing | --- | --- | --- | | `AutoMatte` | Native | Fission-native 1-click AI matte node (SAM 2 + MatAnyone 2 / VideoMaMa + GPU hair-safe decontamination). | | `MagicMask` | ⚠️ Diverging | Diverging Implementation — uses Fission's `AutoMatte` segmentation + GPU hair-safe decontamination instead of Fusion's legacy stroke model. | -| `EllipseMask` | ✅ 100.0% | — | -| `RectangleMask` | ✅ 100.0% | — | -| `TriangleMask` | 99.8%–100.0% | — | -| `PolylineMask` | ✅ 100.0% | — | -| `BSplineMask` | 99.6%–99.9% | — | -| `BitmapMask` | ✅ 100.0% | — | -| `WandMask` | 99.9% | — | -| `PaintMask` | 99.6%–99.9% | Non-round brush shapes not implemented. | +| `EllipseMask` | 99.96% | — | +| `RectangleMask` | ✅ 100% | — | +| `TriangleMask` | ~99.8%–99.99% | — | +| `PolylineMask` | 99.96% | — | +| `BSplineMask` | ~99.6%–99.90% | — | +| `BitmapMask` | 99.97% | — | +| `WandMask` | 99.8% | — | +| `PaintMask` | ~99.6%–99.90% | Non-round brush shapes not implemented. | ## 2D Vector Shapes | Tool | Accuracy | Notes | | --- | --- | --- | -| `sRender` | ✅ 100.0% | — | -| `sNGon` | ✅ 100.0% | — | -| `sStar` | ✅ 100.0% | — | -| `sRectangle` | ✅ 100.0% | — | -| `sEllipse` | ✅ 100.0% | — | -| `sPolygon` | ✅ 100.0% | — | -| `sGrid` | 99.9% | — | -| `sMerge` | ✅ 100.0% | — | -| `sTransform` | ✅ 100.0% | — | -| `sDuplicate` | ✅ 100.0% | — | -| `sJitter` | ✅ 100.0% | — | -| `sExpand` | ✅ 100.0% | — | -| `sOffset` | ✅ 100.0% | — | -| `sBoolean` | ✅ 100.0% | — | -| `sOutline` | ✅ 100.0% | — | +| `sRender` | ✅ 100% | — | +| `sNGon` | ✅ 100% | — | +| `sStar` | ~99.99% | — | +| `sRectangle` | ✅ 100% | — | +| `sEllipse` | ✅ 100% | — | +| `sPolygon` | ~99.99% | — | +| `sGrid` | 99.92% | — | +| `sMerge` | ✅ 100% | — | +| `sTransform` | 99.99% | — | +| `sDuplicate` | ~99.99% | — | +| `sJitter` | ~99.99% | — | +| `sExpand` | ~99.99% | — | +| `sOffset` | ~99.99% | — | +| `sBoolean` | 99.98% | — | +| `sOutline` | 99.99% | — | ## Particles | Tool | Accuracy | Notes | | --- | --- | --- | -| `pRender` | 🎲 99.7% | 2D mode only (no 3D particle renderer); PRNG seed differs. | +| `pRender` | 🎲 99.6% | 2D mode only (no 3D particle renderer); PRNG seed differs. | | `pEmitter` | 🎲 99.8% | PRNG seed differs; cold starts >600 frames window-simulate. | -| `pPointForce` | 🎲 99.8% | PRNG seed differs. | +| `pPointForce` | 🎲 99.7% | PRNG seed differs. | | `pDirectionalForce` | 🎲 99.8% | PRNG seed differs. | | `pTurbulence` | 🎲 99.8% | PRNG seed differs. | | `pDrag` | 🎲 99.8% | PRNG seed differs. | -| `pKill` | 🎲 99.1% | PRNG seed differs. | +| `pKill` | 🎲 99.0% | PRNG seed differs. | | `pMerge` | 🎲 99.7% | PRNG seed differs. | | `pBounce` | 🎲 99.8% | PRNG seed differs. | | `pVortex` | 🎲 | PRNG seed differs. | @@ -206,61 +208,61 @@ Each 3D tool's accuracy is measured by rendering it inside a lit `Merge3D` + `Ca | Tool | Accuracy | Notes | | --- | --- | --- | -| `Renderer3D` | 99.9% | `Rgba8` target only (no float HDR 3D target yet); directional/spot shadow maps pending (`#46`). | -| `Camera3D` | ✅ 100.0% | Depth-of-field / stereo not implemented. | -| `Merge3D` | 99.6% | Minor GPU rasterizer edge/lighting differences. | -| `Transform3D` | 99.4% | Minor rotation-order / rasterizer edge differences. | +| `Renderer3D` | 99.93% | `Rgba8` target only (no float HDR 3D target yet); directional/spot shadow maps pending (`#46`). | +| `Camera3D` | 99.95% | Depth-of-field / stereo not implemented. | +| `Merge3D` | 99.5% | Minor GPU rasterizer edge/lighting differences. | +| `Transform3D` | 99.3% | Minor rotation-order / rasterizer edge differences. | | `ImagePlane3D` | 99.2% | Minor visibility/shading differences vs OpenGL renderer. | -| `Shape3D` | 99.9% | — | -| `Cube3D` | 99.9% | — | +| `Shape3D` | 99.8% | — | +| `Cube3D` | 99.91% | — | | `SurfaceFBXMesh` | Static | Static mesh only (no skeletal skinning or morph animation). | | `Text3D` | 98.5% | Bevels not implemented. | -| `LightAmbient` | ✅ 100.0% | — | -| `LightDirectional` | 99.9% | Up to 4 directional lights per scene; shadow maps pending (`#46`). | -| `LightPoint` | 99.9% | — | -| `LightSpot` | 99.6% | Spot shadow maps pending (`#46`). | -| `MtlBlinn` | 99.6% | Minor transmittance/specular highlight differences. | -| `MtlCookTorrance` | 98.6% | Refractive index / rough microfacet lobe differs slightly from Fusion OpenGL. | +| `LightAmbient` | 99.98% | — | +| `LightDirectional` | 99.93% | Up to 4 directional lights per scene; shadow maps pending (`#46`). | +| `LightPoint` | 99.91% | — | +| `LightSpot` | 99.5% | Spot shadow maps pending (`#46`). | +| `MtlBlinn` | 99.5% | Minor transmittance/specular highlight differences. | +| `MtlCookTorrance` | 98.5% | Refractive index / rough microfacet lobe differs slightly from Fusion OpenGL. | | `MtlPhong` | 99.3% | Minor transparent diffuse alpha blending differences. | -| `MtlWard` | 99.4%–99.9% | — | -| `MtlReflect` | 99.4%–99.9% | — | -| `MtlChanBool` | 99.7%–100.0% | — | -| `SphereMap` | 99.5%–99.9% | — | -| `Texture2DOperator` | 99.3% | Minor wrap/filter edge differences. | +| `MtlWard` | ~99.4%–99.90% | — | +| `MtlReflect` | ~99.4%–99.90% | — | +| `MtlChanBool` | ~99.7%–99.99% | — | +| `SphereMap` | ~99.5%–99.90% | — | +| `Texture2DOperator` | 99.2% | Minor wrap/filter edge differences. | | `TextureTransformOperator` | 99.6% | Minor UV rotation-order resampling differences. | -| `BumpMap` | 99.2% | Minor tangent-space normal clamping differences. | -| `ReplaceMaterial3D` | ✅ 100.0% | — | -| `Override3D` | 99.9% | Wireframe/material-ID exclusion edge cases pending. | -| `Duplicate3D` | 🎲 97.6% | Stochastic jitter PRNG seed differs from Fusion. | -| `Replicate3D` | 99.5%–99.9% | — | -| `Bender3D` | 99.5%–99.9% | — | -| `ReplaceNormals3D` | 99.9% | — | -| `Displace3D` | 99.7% | Minor vertex displacement normal recomputation differences. | +| `BumpMap` | 99.1% | Minor tangent-space normal clamping differences. | +| `ReplaceMaterial3D` | 99.97% | — | +| `Override3D` | 99.8% | Wireframe/material-ID exclusion edge cases pending. | +| `Duplicate3D` | 🎲 97.5% | Stochastic jitter PRNG seed differs from Fusion. | +| `Replicate3D` | ~99.5%–99.90% | — | +| `Bender3D` | ~99.5%–99.90% | — | +| `ReplaceNormals3D` | 99.93% | — | +| `Displace3D` | 99.6% | Minor vertex displacement normal recomputation differences. | ## Time, Routing & Utility | Tool | Accuracy | Notes | | --- | --- | --- | -| `Saver` | ✅ 100.0% | Export supports PNG sequences, HDR OpenEXR (`f16`/`f32`), and MP4/ProRes4444. | -| `Dimension.OpticalFlow` | 99.9% | — | -| `Dimension.CopyAux` | ✅ 100.0% | — | -| `TimeStretcher` | ✅ 100.0% | — | -| `TimeSpeed` | ✅ 100.0% | — | -| `Trails` | 99.5%–99.9% | Bounded-lookback temporal window (no stateful infinite feedback). | -| `Fuse.Linger` | 99.6%–99.9% | Bounded-lookback temporal window. | -| `Fuse.Null` | ✅ 100.0% | — | -| `Fuse.SetMetaData` | ✅ 100.0% | — | -| `Switch` | ✅ 100.0% | — | -| `Fuse.Switch` | ✅ 100.0% | — | -| `Fuse.SwitchElse` | ✅ 100.0% | — | -| `PipeRouter` | ✅ 100.0% | — | -| `Fuse.Wireless` | ✅ 100.0% | — | -| `Tracker` | ✅ 100.0% | — | -| `SurfaceTracker` | 99.5%–99.9% | — | -| `Dimension.PlanarTracker` | ✅ 100.0% | — | -| `MacroOperator` | ✅ 100.0% | Internal subgraph is read-only in interactive Flow. | -| `GroupOperator` | ✅ 100.0% | Internal subgraph is read-only in interactive Flow. | -| `Custom` | ⚠️ 98.2% | 11/12 frames are 100.0%; Fusion reads uninitialized memory stripes on missing Coverage mask (`MaskChannel=7`). | +| `Saver` | ~99.99% | Export supports PNG sequences, HDR OpenEXR (`f16`/`f32`), and MP4/ProRes4444. | +| `Dimension.OpticalFlow` | ~99.90% | — | +| `Dimension.CopyAux` | ~99.99% | — | +| `TimeStretcher` | 99.99% | — | +| `TimeSpeed` | 99.98% | — | +| `Trails` | ~99.5%–99.90% | Bounded-lookback temporal window (no stateful infinite feedback). | +| `Fuse.Linger` | ~99.6%–99.90% | Bounded-lookback temporal window. | +| `Fuse.Null` | ~99.99% | — | +| `Fuse.SetMetaData` | ~99.99% | — | +| `Switch` | ~99.99% | — | +| `Fuse.Switch` | ~99.99% | — | +| `Fuse.SwitchElse` | ~99.99% | — | +| `PipeRouter` | ✅ 100% | — | +| `Fuse.Wireless` | ✅ 100% | — | +| `Tracker` | ~99.99% | — | +| `SurfaceTracker` | ~99.5%–99.90% | — | +| `Dimension.PlanarTracker` | ~99.99% | — | +| `MacroOperator` | ~99.99% | Internal subgraph is read-only in interactive Flow. | +| `GroupOperator` | ~99.99% | Internal subgraph is read-only in interactive Flow. | +| `Custom` | ⚠️ 98.1% | 11/12 frames are 100.0%; Fusion reads uninitialized memory stripes on missing Coverage mask (`MaskChannel=7`). | | `Note` | N/A | Non-rendering Flow annotation. | | `Underlay` | N/A | Non-rendering Flow backdrop. | diff --git a/scripts/gen_compatibility.py b/scripts/gen_compatibility.py index b72a18f36702a472a88a0849c9b4b5b38735f646..792afff28c3645b381a95f2fbd62d4fb1db31f5e 100755 --- a/scripts/gen_compatibility.py +++ b/scripts/gen_compatibility.py @@ -9,6 +9,7 @@ from __future__ import annotations import argparse import json +import math import re import sys from collections import Counter @@ -498,8 +499,15 @@ def load_ledger(path: Path) -> Dict[str, Any]: return json.loads(path.read_text(encoding="utf-8")) if path.exists() else {} -def format_accuracy(pct: float) -> str: - return "✅ 100.0%" if pct >= 99.95 else f"{pct:.1f}%" +def format_accuracy(pct: float, *, exact: bool = False) -> str: + """Format an accuracy percentage, rounding DOWN and only awarding ✅ 100% on literal 100%.""" + if exact and pct >= 100.0: + return "✅ 100%" + if pct >= 99.9: + floored = min(99.99, math.floor(pct * 100.0 + 1e-9) / 100.0) + return f"{floored:.2f}%" + floored = math.floor(pct * 10.0 + 1e-9) / 10.0 + return f"{floored:.1f}%" def format_tool_accuracy(meta: ToolMeta, entry: Optional[Dict[str, Any]]) -> str: @@ -508,26 +516,33 @@ def format_tool_accuracy(meta: ToolMeta, entry: Optional[Dict[str, Any]]) -> str return "⚠️ Diverging" if meta.badge == "stochastic": if entry is not None: - return f"🎲 {entry['mean_accuracy']:.1f}%" + return f"🎲 {format_accuracy(entry['mean_accuracy'], exact=False)}" return "🎲" if meta.badge == "ceiling": if entry is not None: - return f"⚠️ {entry['mean_accuracy']:.1f}%" + return f"⚠️ {format_accuracy(entry['mean_accuracy'], exact=False)}" return f"⚠️ {legacy_accuracy(meta.mae)}" if entry is not None: - return format_accuracy(entry["mean_accuracy"]) + has_known_gap = bool(meta.notes and meta.notes != "—") + is_exact = ( + entry["mean_accuracy"] >= 100.0 + and entry["min_accuracy"] >= 100.0 + and not has_known_gap + ) + return format_accuracy(entry["mean_accuracy"], exact=is_exact) return legacy_accuracy(meta.mae) def legacy_accuracy(mae: str) -> str: - """`100% - MAE%` for a legacy hand-written MAE cell (`0.1%–0.4%`); non-numeric cells pass through.""" + """Estimated `100% - MAE%` for tools not yet in accuracy_ledger.json (never awards ✅ 100%).""" nums = [float(n) for n in re.findall(r"\d+(?:\.\d+)?", mae)] if not nums or "%" not in mae: return mae - best, worst = 100.0 - min(nums), 100.0 - max(nums) - if format_accuracy(best) == format_accuracy(worst): - return format_accuracy(best) - return f"{worst:.1f}%–{best:.1f}%" + best_str = format_accuracy(100.0 - min(nums), exact=False) + worst_str = format_accuracy(100.0 - max(nums), exact=False) + if best_str == worst_str: + return f"~{best_str}" + return f"~{worst_str}–{best_str}" def build_markdown( @@ -630,19 +645,25 @@ def build_markdown( fuzzed = {n: e for n, e in ledger.get("tools", {}).items() if n in live_engine_tools} if fuzzed: mean = sum(e["mean_accuracy"] for e in fuzzed.values()) / len(fuzzed) - supported_tools_cell = f"**{format_accuracy(mean)}**" + all_exact = all(e["mean_accuracy"] >= 100.0 and e["min_accuracy"] >= 100.0 for e in fuzzed.values()) + supported_tools_cell = f"**{format_accuracy(mean, exact=all_exact)}**" else: supported_tools_cell = "_Not measured_" exact_100_count = 0 + over_999_count = 0 for m in TOOL_METADATA: if m.name not in live_engine_tools and m.name not in non_render_tools: continue - acc_cell = format_tool_accuracy(m, fuzzed.get(m.name)) - if acc_cell == "✅ 100.0%": + entry = fuzzed.get(m.name) + acc_cell = format_tool_accuracy(m, entry) + if acc_cell == "✅ 100%": exact_100_count += 1 + if entry is not None and entry["mean_accuracy"] > 99.9 and m.badge not in ("diverging", "stochastic"): + over_999_count += 1 paper = ledger.get("paper_clover") if paper: - paper_cell = f"**{format_accuracy(paper['mean_accuracy'])}**" + paper_exact = paper["mean_accuracy"] >= 100.0 and paper.get("min_accuracy", 0.0) >= 100.0 + paper_cell = f"**{format_accuracy(paper['mean_accuracy'], exact=paper_exact)}**" else: paper_cell = "_Not measured_" # Denominators queried directly from stock Fusion Render Node 21.1 (`fu:GetRegList()` visible CT_Tool) @@ -675,12 +696,14 @@ def build_markdown( lines.append(f"| **Accuracy across [paper clover](https://paperclover.net)'s compositions** | {paper_cell} |") lines.append(f"| **Supported Tool Accuracy** | {supported_tools_cell} |") lines.append(f"| **Supported Tools with 100% Accuracy** | **{exact_100_count}** |") + lines.append(f"| **Supported Tools with >99.9% Accuracy** | **{over_999_count}** |") lines.append(f"| **Coverage of Fusion's Built-in Tools** | **{builtin_pct:.1f}%** |") lines.append(f"| **Native Reactor Fuse Implementations** | **{reactor_pct:.1f}%** (+ dynamic Lua/DCTL runtime) |") lines.append("") lines.append("### Key") lines.append("") - lines.append("- `✅ 100.0%` — Pixel-exact match against Blackmagic Fusion Studio 21.1 (`≥ 99.95%` mean accuracy across fuzzed parameter combinations).") + lines.append("- `✅ 100%` — Literal `100%` pixel-exact match against Blackmagic Fusion Studio 21.1 across every fuzzed frame, with no known unimplemented paths. Anything `< 100%` (or with known ways to differ) is rounded down (capped at `99.99%`).") + lines.append("- `~` — Estimated from unit tests or Snow Globe probes (not yet measured in `scripts/accuracy_ledger.json`).") lines.append("- `🎲` — Stochastic / PRNG-driven (statistically and visually matched; Fusion's internal random seed is irreproducible).") lines.append("- `⚠️` — Diverging implementation (intentionally uses a different algorithm or UX from Fusion) or a practical parity ceiling noted in **Notes**.") lines.append("")