omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Native screensaver burns >120% CPU continuously: ttfx runs at --frame-rate 120

Open YF36 opened this issue 1 month ago • 3 comments

Environment: Omarchy 4.5.0rc1-1 on aarch64 (NVIDIA DGX Spark / GB10, kernel 7.3.0-2-omarchy, Hyprland 0.56.2-7, Quickshell 0.3.2.r7), one monitor over HDMI.

Observation: once the idle screensaver kicks in, foot --app-id=org.omarchy.screensaver holds ~120-143% CPU continuously — I measured it running for 4+ hours with 331 CPU-minutes accumulated before I noticed. ttfx itself adds another ~5-8%.

PID    %CPU  TIME     COMMAND
968694 143   331:37   foot --app-id=org.omarchy.screensaver --config=… -e omarchy-screensaver

Cause: /usr/bin/omarchy-screensaver launches ttfx --frame-rate 120 … — a 120 fps terminal animation is far beyond what a screensaver needs (and beyond a 60 Hz display). On this always-on arm64 box it read as a permanent ~1.4-core load.

Suggestion: default the screensaver to a modest frame rate (24-30 fps is plenty for a matrix effect), or expose it as a setting. Happy to send a PR if you point me at the preferred place (hardcoded flag vs. settings-driven).

(Searched open issues — screensaver bugs are plenty but no CPU/perf report found.)

YF36 avatar Nov 03 '26 05:11 YF36

This report is about the old screensaver, which ran ttfx --frame-rate 120 inside foot. On current quattro (ae64a4b), omarchy-launch-screensaver runs the native omarchy-screensaver Wayland renderer instead. It still steps ttfx at 120 Hz, but it only redraws changed cells and only presents after the compositor's frame callback (LEARNINGS.md). The terminal emulator, which was where the ~140% CPU went, is gone. Worth re-measuring on 4.5.0rc3 or later before working on this further.

jamesponwith avatar Nov 03 '26 12:11 jamesponwith

I read the report and the follow-up about the replacement native renderer. I have not measured CPU use on the current renderer or verified that it resolves this report. Codex (GPT-6; reasoning effort unavailable) was the only reviewer of the report in this pass: the classification model returned no usable answer, so classification remains unsettled and no class label was added. This is left for the maintainer to resolve the classification before further verification.

omarchybot avatar Nov 18 '26 19:11 omarchybot

This reports the same terminal-screensaver CPU problem as #9193: foot consumes most of the CPU while ttfx --frame-rate 120 runs, with much less CPU used by ttfx itself. Your ARM measurements extend that report to another machine; they do not describe a separate failure.

Codex (GPT-6; reasoning effort unavailable) compared both reports and read the current launcher and replacement history. Opus 5.5 High separately agreed that they report the same bug; independence is not guaranteed. No CPU measurements were run in this pass, and this does not establish that the native renderer resolves the reported load.

Closing this as a duplicate so the CPU investigation stays in #9193. Thanks, @YF36, for the measurements. This can be reopened if there is a distinct failure that #9193 does not cover.

omarchybot avatar Nov 23 '26 04:11 omarchybot