Skip to content

preflight: Lay out the bench like OBS's Stats window - #75

Draft
chriscoveries wants to merge 1 commit into
preflight/ui-p6from
preflight/ui-polish
Draft

chriscoveries wants to merge 1 commit into
preflight/ui-p6from
preflight/ui-polish

Conversation

@chriscoveries

Copy link
Copy Markdown
Owner

Fork draft, stacked on #74 (P6). Visual changes only: no change to what the bench measures, the verdicts, or what Apply writes.

Polish of the preflight window after the owner's review of the P6 renders ("nothing like the OBS interface"). These pictures are drawn off-screen by test_preflight_ui_render, using OBS's own Yami theme and the recorded "congested uplink" trace. They aren't a live OBS run.

Live bench Bake-off
Live bench Bake-off
Loupe Apply
Loupe Apply

What changed

Metric table

  • Names, values and trends sit together on the left, as in OBS's Stats window. The table is sized to show all eight rows without scrolling.
  • Values inside their limits get no status label. Over a limit, the label says "Warning" or "Danger", in the theme's text-warning and text-danger colours. Congestion now uses the same two words instead of "Fair" and "Poor".

Detail chart

  • It draws render time only, because the frame interval is already the 100% line.
  • Threshold lines take their colours from the active theme's warning and danger classes, not hard-coded colours.

Sparklines

  • They use the theme's text colour, so they stay visible on a selected row, and mark the latest value with a dot.

Smaller fixes

  • The destination line is hidden for recorded previews, where it repeated the header.
  • The bake-off note is shorter.
  • The loupe is sized to its 400% crop.
  • Apply is right-aligned, and the mode reads "Advanced (recorded preview)".
  • The window opens at 1040×720.
  • The clang-format error at preflight-bench-window.cpp:1754 is fixed.

Evidence

Local runs on an Apple Silicon Mac (macOS 27, macos-ci preset, RelWithDebInfo), at this PR's head 0716d0614:

  • clang-format 22 --dry-run --Werror and git diff --check: clean.
  • The full obs-studio app and all seven test_preflight_* targets build.
  • ctest -R '^test_preflight_': 7 of 7 pass. test_preflight_ui_render still checks the verdict text, the tabs, the warning bands, zero-based round axes, the bake-off verdicts and the Apply diff.

Not verified here: the window inside a running OBS, which the owner checks in the P7 app.



Thank you to the obs-rust maintainers and contributors for building this project in the open. In the American spirit of free expression and individual independence, and with the principle of judging contributions on their merit alone, this PR is a small piece of what independent people can build when they come together.

Keep metric names, values and trends together and show all eight rows
without scrolling. Values inside their limits get no status label, as in
the Stats window, and congestion uses the same Warning and Danger words.

The detail chart draws only render time, since the frame interval is the
100% line, and colours each threshold line with the theme's text-warning
and text-danger colours. The sparkline uses the text colour so it stays
visible on a selected row.

Hide the destination line for recorded previews, shorten the bake-off
note, size the loupe to its 400% crop, right-align Apply, and open the
window at 1040x720.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant