From 4a53f5fb504431bae2e4acb08edf5f2bb20b3d5e Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 12 Nov 2026 13:30:42 -0500 Subject: [PATCH] Add a headless frame-time benchmark and record the baseline docker/ashlar-bench.sh boots the Game Template with fixed video settings, records OpenMW's per-frame profiler trace, and summarizes it with a new stdlib-only script. By default it renders on the NVIDIA GPU through EGL and SDL's offscreen driver, so no window opens. docs/ashlar/BENCHMARK.md holds the method and the first RTX 5060 Ti baseline. Closes #3 Co-Authored-By: Claude Opus 5.5 --- ASHLAR.md | 8 ++ docker/ashlar-bench.sh | 111 ++++++++++++++++++++++++++ docs/DEVLOG.md | 17 ++++ docs/ashlar/BENCHMARK.md | 49 ++++++++++++ scripts/ashlar_bench_summary.py | 135 ++++++++++++++++++++++++++++++++ 5 files changed, 320 insertions(+) create mode 100755 docker/ashlar-bench.sh create mode 100644 docs/DEVLOG.md create mode 100644 docs/ashlar/BENCHMARK.md create mode 100755 scripts/ashlar_bench_summary.py diff --git a/ASHLAR.md b/ASHLAR.md index 26690f0626..d3d4ed81a7 100644 --- a/ASHLAR.md +++ b/ASHLAR.md @@ -65,6 +65,14 @@ present. Settings and saves go to `~/.cache/ashlar/play-morrowind/`. MORROWIND_DATA="/path/to/Data Files" docker/ashlar-play.sh ``` +To record a frame-time baseline on the NVIDIA GPU without opening a window: + +```bash +docker/ashlar-bench.sh +``` + +See `docs/ashlar/BENCHMARK.md` for the method and the recorded baseline. + ## Git remotes - `origin` is `git@gitea.eom.dev:Gaming/ashlar.git`. diff --git a/docker/ashlar-bench.sh b/docker/ashlar-bench.sh new file mode 100755 index 0000000000..c27051b3a3 --- /dev/null +++ b/docker/ashlar-bench.sh @@ -0,0 +1,111 @@ +#!/usr/bin/env bash +# Records a frame-time baseline on the asset-free Game Template. +# +# The engine starts a new game with fixed video settings, the player stands at +# the template's start position, and OpenMW's built-in profiler writes every +# frame's timings for a fixed duration. The trace and a summary go to +# ~/.cache/ashlar/bench/