perf: avoid computing whole reference orbit when not needed

This commit is contained in:
2026-09-30 19:38:29 +02:00
parent 52e1814266
commit 825bf6474a
4 changed files with 138 additions and 21 deletions
+7 -1
View File
@@ -54,7 +54,13 @@ window/event loop. Not yet supported with `--buddhabrot`. With
`--auto-color-scale`, a downscaled 1-spp `fs_data` prepass
(`ExportRender::ci_range_blocking`, ≤ 1024 px) is histogrammed like the
interactive `CiStats`. The fit is then written into the export's uniforms,
and animations refit every frame from the same start. Run
and animations refit every frame from the same start. With auto-iterations,
a still whose full orbit would be costly (`orbit_secs` > `PROBE_MIN_SECS`)
computes only a prefix (8192 steps, then ×4) and probes it with the same
prepass (`max_escape_blocking`): the shader treats an exhausted reference
as an escape, so once the last probe escape is under half the prefix the
image is unchanged (c = -1.5 at 1e-1000 needs ~10k of the 900k auto steps).
Device setup runs on a thread meanwhile. Run
`mandelbrot --help` for the full list.
`--headless` also has an animation mode, for feeding into `ffmpeg`: give any