Skip to content

StableBar uses about 26% CPU with the Now Playing title scrolling #241

Closed

Description

@Seb-GRAF

What happens

StableBar averages approximately 26% of one CPU core while Settings and popups are closed, edit mode is off, and the Now Playing song title scrolls.

Steps to reproduce

Observed in an existing configuration; an isolated reproduction remains to be established:

  1. Use now-playing 1.2.1 with a title long enough to scroll, width 160 and scrollSpeed: 20.
  2. Close Settings and popups and leave bar edit mode.
  3. Observe StableBar CPU usage for one minute.

Expected

Smooth scrolling with low CPU usage while the bar is otherwise idle.

Environment

StableBar 0.6.0-beta.20261022130338.300, commit 0c5c7ee; macOS 26.6.2; Apple M3 Pro, 18 GB RAM. AeroSpace connected, Nord theme, system-monitor polling every 10 seconds. Display count and refresh rate were not recorded.

Evidence

A 62-second capture with 12 interval samples measured mean CPU 25.9%, ranging from 19–33.5%. Median process memory was 137 MB.

Active main-thread stacks repeatedly contained SwiftUI/AppKit layout, rendering and AttributeGraph work. The active Now Playing helper measured 0–0.7% CPU in a separate short capture.

This was a normal user session with other widgets enabled. Profiling overhead may affect measurements. No scrolling-disabled comparison was performed.

Diagnosis

At the audited commit, ScrollingText.swift:24 uses an animation timeline without a minimum interval. Rendering is the leading investigation target; scrolling's exact contribution remains unmeasured.

#174 deliberately removed the 30 FPS limit to improve smoothness. Any optimization should preserve that improvement.

Related

#95 tracks general performance benchmarks. This report concerns sustained CPU in an observed scrolling workload. #150 concerned freezes during widget moves.

Triaged by Codex via T3 Code (gpt-6-astra).

Activity

  1. added
    bug
    on Oct 22, 2026
  2. stablebar-releases commented on Oct 23, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.6.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions