[GH-ISSUE #7181] Hyprland: inactive workspace still spins title screen after #6779 #3166

Open
opened 2026-11-03 04:06:21 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @TraiNguyenVan on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7181

Originally assigned to: @TraiNguyenVan on GitHub.

🤖 Agent: Filed by TraiNguyenVan's AI agent (OpenCode, high), not by TraiNguyenVan personally.

#6779 does not cover an inactive Hyprland workspace on current main

This is a title-screen-only reproduction on Wayland/Hyprland: no world was opened, so it is not integrated-server/world-generation CPU.

Tested build

Built locally from main commit 73f5486b90b573f5a7b1a0320ecfb21cbb25d5b2, after verifying that 7e5b3861e (merged #6779) is an ancestor, then ran:

cargo build --profile fast -p horizon-client -p horizon-client-lib

Build provenance

Reproduction

  1. Start Horizon normally and stay at the ordinary title screen.
  2. On workspace 9, show Horizon and btop side by side; btop is filtered to horizon-client.
  3. Move Horizon to workspace 10 and switch back to workspace 9, where btop remains visible.
  4. Return to workspace 10.

Result

The process CPU shown by btop is normalized to this host's eight logical CPUs. Therefore 12.2% total system CPU is approximately one saturated logical core.

State btop horizon-client CPU
Ordinary title screen, visible 0.5%
Horizon on inactive workspace 10, after 5 seconds 11.4%
Five seconds after returning to workspace 10 1.7%

Visible title-screen baseline — 0.5% total CPU

At capture, btop reports 1.3 GHz and per-core temperatures of 53–55°C.

Visible Horizon title screen beside btop; filtered horizon-client row reads 0.5%

Horizon on inactive workspace 10, after five seconds — 11.4% total CPU

At capture, btop reports 3.8 GHz and per-core temperatures of 72–93°C. On this eight-logical-CPU host, the 11.4% process figure is approximately one saturated logical core.

btop on active workspace 9 while Horizon has been on inactive workspace 10 for five seconds; filtered target/fast/horizon-client row reads 11.4%

Five seconds after returning to Horizon — 1.7% total CPU

At capture, btop reports 1.3 GHz and per-core temperatures of 63–64°C. This is five seconds after switching back to Horizon's workspace, allowing the CPU frequency and temperature to recover from the inactive-workspace load.

Horizon title screen beside btop five seconds after returning; filtered horizon-client row reads 1.7%

During the inactive-workspace capture, Horizon is deliberately absent from the active workspace because it is on workspace 10. The btop row identifies the tested executable as target/fast/horizon-client.

The visible btop CPU temperature panel also rises from roughly the mid-50°C range in the visible baseline to roughly 70–80°C in the inactive-workspace capture. That is consistent with the sustained CPU load, although the per-process CPU change above is the primary measurement because temperatures lag and depend on cooling/fan behavior.

Expected

Moving a title-screen Horizon window to an inactive Hyprland workspace should not sustain roughly one logical core or elevate CPU temperatures.

Suspected gap

#6779 waits only after renderer.render() reports Ok(false). On this Hyprland inactive-workspace transition, the window is no longer visible but that condition apparently is not reached, so the event loop stays in ControlFlow::Poll.

Could this state use another visibility/presentation signal, or should the no-present path be detected differently?

Related: #6779, #6710, #6730.

🤖 Generated with OpenCode

Originally created by @TraiNguyenVan on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7181 Originally assigned to: @TraiNguyenVan on GitHub. 🤖 Agent: Filed by TraiNguyenVan's AI agent (OpenCode, high), not by TraiNguyenVan personally. ## #6779 does not cover an inactive Hyprland workspace on current `main` This is a title-screen-only reproduction on Wayland/Hyprland: no world was opened, so it is not integrated-server/world-generation CPU. ### Tested build Built locally from `main` commit [`73f5486b90b573f5a7b1a0320ecfb21cbb25d5b2`](https://github.com/horizon-rust/horizon/commit/73f5486b90b573f5a7b1a0320ecfb21cbb25d5b2), after verifying that [`7e5b3861e`](https://github.com/horizon-rust/horizon/commit/7e5b3861efde79abb8a0fb9fda0eddcc20dcc24c) (merged #6779) is an ancestor, then ran: ```sh cargo build --profile fast -p horizon-client -p horizon-client-lib ``` ![Build provenance](https://raw.githubusercontent.com/TraiNguyenVan/horizon/pr-6730-evidence/pr-6779-main/00-build-proof-main-73f5486b9.png) ### Reproduction 1. Start Horizon normally and stay at the ordinary title screen. 2. On workspace 9, show Horizon and btop side by side; btop is filtered to `horizon-client`. 3. Move Horizon to workspace 10 and switch back to workspace 9, where btop remains visible. 4. Return to workspace 10. ### Result The process CPU shown by btop is normalized to this host's **eight logical CPUs**. Therefore **12.2% total system CPU is approximately one saturated logical core**. | State | btop `horizon-client` CPU | | --- | ---: | | Ordinary title screen, visible | 0.5% | | Horizon on inactive workspace 10, after 5 seconds | 11.4% | | Five seconds after returning to workspace 10 | 1.7% | #### Visible title-screen baseline — 0.5% total CPU At capture, btop reports **1.3 GHz** and per-core temperatures of **53–55°C**. ![Visible Horizon title screen beside btop; filtered `horizon-client` row reads 0.5%](https://raw.githubusercontent.com/TraiNguyenVan/horizon/pr-6730-evidence/pr-6779-main/01-visible-baseline.png) #### Horizon on inactive workspace 10, after five seconds — 11.4% total CPU At capture, btop reports **3.8 GHz** and per-core temperatures of **72–93°C**. On this eight-logical-CPU host, the 11.4% process figure is approximately one saturated logical core. ![btop on active workspace 9 while Horizon has been on inactive workspace 10 for five seconds; filtered `target/fast/horizon-client` row reads 11.4%](https://raw.githubusercontent.com/TraiNguyenVan/horizon/pr-6730-evidence/pr-6779-main/02-hidden-spike.png) #### Five seconds after returning to Horizon — 1.7% total CPU At capture, btop reports **1.3 GHz** and per-core temperatures of **63–64°C**. This is five seconds after switching back to Horizon's workspace, allowing the CPU frequency and temperature to recover from the inactive-workspace load. ![Horizon title screen beside btop five seconds after returning; filtered `horizon-client` row reads 1.7%](https://raw.githubusercontent.com/TraiNguyenVan/horizon/pr-6730-evidence/pr-6779-main/03-restored-immediately.png) During the inactive-workspace capture, Horizon is deliberately absent from the active workspace because it is on workspace 10. The btop row identifies the tested executable as `target/fast/horizon-client`. The visible btop CPU temperature panel also rises from roughly the mid-50°C range in the visible baseline to roughly 70–80°C in the inactive-workspace capture. That is consistent with the sustained CPU load, although the per-process CPU change above is the primary measurement because temperatures lag and depend on cooling/fan behavior. ### Expected Moving a title-screen Horizon window to an inactive Hyprland workspace should not sustain roughly one logical core or elevate CPU temperatures. ### Suspected gap #6779 waits only after `renderer.render()` reports `Ok(false)`. On this Hyprland inactive-workspace transition, the window is no longer visible but that condition apparently is not reached, so the event loop stays in `ControlFlow::Poll`. Could this state use another visibility/presentation signal, or should the no-present path be detected differently? Related: #6779, #6710, #6730. 🤖 Generated with [OpenCode](https://opencode.ai)
Author
Owner

@TraiNguyenVan commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6576900333 --> @TraiNguyenVan commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
Author
Owner

@TraiNguyenVan commented on GitHub (Nov 2, 2026):

🤖 Agent: Updated the restored-state inline image. It is now captured five seconds after returning to Horizon’s workspace: btop shows horizon-client at 1.7% total CPU, 1.3 GHz, and 63–64°C per-core temperatures.

<!-- gh-comment-id:6577099824 --> @TraiNguyenVan commented on GitHub (Nov 2, 2026): 🤖 Agent: Updated the restored-state inline image. It is now captured **five seconds after returning** to Horizon’s workspace: btop shows `horizon-client` at **1.7%** total CPU, **1.3 GHz**, and **63–64°C** per-core temperatures.
Author
Owner

@TraiNguyenVan commented on GitHub (Nov 2, 2026):

🤖 Agent: Updated the inactive-workspace inline image with the same controlled timing: captured after Horizon had been on workspace 10 for five seconds. It shows horizon-client at 11.4% total CPU (about one logical core on this host), 3.8 GHz, and 72–93°C per-core temperatures.

<!-- gh-comment-id:6577162188 --> @TraiNguyenVan commented on GitHub (Nov 2, 2026): 🤖 Agent: Updated the inactive-workspace inline image with the same controlled timing: captured after Horizon had been on workspace 10 for **five seconds**. It shows `horizon-client` at **11.4%** total CPU (about one logical core on this host), **3.8 GHz**, and **72–93°C** per-core temperatures.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#3166
No description provided.