aboutsummaryrefslogtreecommitdiff
path: root/crates/render-parity/README.md
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-02-19 04:02:26 +0300
committerValentin Popov <valentin@popov.link>2026-02-19 04:02:26 +0300
commit18d4c6cf9fabc18282b29d103c8d30024f66e49b (patch)
tree7f9adfa0dcae5653f378c14b32a238c6771c1602 /crates/render-parity/README.md
parent0e19660eb5122c8c52d5e909927884ad5c50b813 (diff)
downloadfparkan-18d4c6cf9fabc18282b29d103c8d30024f66e49b.tar.xz
fparkan-18d4c6cf9fabc18282b29d103c8d30024f66e49b.zip
feat(render-parity): add deterministic frame comparison tool
- Introduced `render-parity` crate for comparing rendered frames against reference images. - Added command-line options for specifying manifest and output directory. - Implemented image comparison metrics: mean absolute difference, maximum absolute difference, and changed pixel ratio. - Created a configuration file `cases.toml` for defining test cases with global defaults and specific parameters. - Added functionality to capture frames from `render-demo` and save diff images on discrepancies. - Updated documentation to include usage instructions and CI model for automated testing.
Diffstat (limited to 'crates/render-parity/README.md')
-rw-r--r--crates/render-parity/README.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/crates/render-parity/README.md b/crates/render-parity/README.md
new file mode 100644
index 0000000..a94520e
--- /dev/null
+++ b/crates/render-parity/README.md
@@ -0,0 +1,16 @@
+# render-parity
+
+Deterministic frame-diff runner for `parkan-render-demo`.
+
+Usage:
+
+```bash
+cargo run -p render-parity -- \
+ --manifest parity/cases.toml \
+ --output-dir target/render-parity/current
+```
+
+Options:
+
+- `--demo-bin <path>`: use prebuilt `parkan-render-demo` binary instead of `cargo run`.
+- `--keep-going`: continue all cases even after failures.