mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-28 02:56:36 -04:00
a643fab71d
The reconstruction added in the previous commit was env-only (PSX_FMV_FILTER), which is fine for trying it out and no good for shipping it. Promote it to [video] fmv_filter in both game.toml and settings.toml, spelled "nearest" | "bilinear" | "sharp" | "bicubic" (default bicubic), and push the resolved value to the renderer instead of having the renderer read getenv. PSX_FMV_FILTER still overrides for a single run without touching the user's settings, which is what an env knob is actually for. Also bridges the value to recomp-ui's launcher settings in both directions so the Display settings row round-trips: recomp-ui stores it 1-based (0 = unset, so a host predating the field gets the default rather than Nearest), the config enum is 0-based, and the conversion is confined to two helpers at the boundary. Verified end to end: with fmv_filter = "bilinear" in settings.toml the presented pixels match the bilinear reference exactly (mean |dx| 0.930, hard-step fraction 0.14%), where the default build produces the bicubic numbers (1.038 / 0.34%). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>