Skip to content

Stuttometer v0.9.2 - GUI Fixes, Dead Code Cleanup & Architecture Refactor

Choose a tag to compare

@xdr0p xdr0p released this 28 Nov 17:02
· 19 commits to main since this release

Stuttometer v0.9.2

Highlights & Bug Fixes

  • Header Separator & Settings Alignment Fixes:
    • Fixed GdiThemeCache::init() missing pen_header_border creation so the main window header separator renders in #262D3C instead of falling back to BLACK_PEN.
    • Fixed vertical-scale divergence in the Settings dialog (layout_settings_controls() vs WM_PAINT) by unifying both onto a single compute_settings_layout() geometry pass.
  • Benchmark & Settings UI Polish (from b12d5dd, pushed after v0.9.1):
    • Fixed benchmark button theme hardcoding, refined Settings dialog spacing, and updated README dashboard/settings screenshots.

Codebase Cleanup & Deduplication

  • Dead Code Removal:
    • Removed unused GDI theme brushes/pens, get_attribution_brush(), event_context_display(), event_context_class_to_std_string(), attr_stripe_fn table stripe path, GuiController::target_process_name_, OsdToastData::spike_ratio, unused GuiMetrics fields (eliminating an unnecessary ~200 ms mutex lock), and 6 unused judder constants.
  • Shared Helpers & Deduplication:
    • Extracted shared CLI/GUI ETW session, snapshot, correlator threshold, and per-trigger report helpers into internal/session_helpers.hpp.
    • Consolidated 4× UTF-8 ↔ UTF-16 converters onto stuttometer::utf8_to_utf16 / stuttometer::utf16_to_utf8.
    • Extracted shared Win32 edit non-client chrome helpers, modal dialog scaffolding, clipboard/save-dialog/button-feedback utilities, RAII MemoryPaintDC, attribution_display_label(), GdiThemeCache brush/pen iteration, CardRenderer anchor/peak search, and TriggerEngine::make_trigger_info() (hot-path constexpr noexcept).