[PR #2031] [MERGED] F3: measure each line once per frame #3952

Closed
opened 2026-11-03 04:13:32 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2031
Author: @Domanffe
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @ludovic111

Base: main ← Head: perf/debug-line-width-once


📝 Commits (2)

  • dd45bf7 F3: measure each line once per frame
  • 54e4274 Merge remote-tracking branch 'origin/main' into perf/debug-line-width-once

📊 Changes

1 file changed (+4 additions, -5 deletions)

View changed files

📝 crates/horizon-client/src/debug_overlay.rs (+4 -5)

📄 Description

🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself.

debug_overlay::draw measured every line twice per frame: once to place it, and again for its background box. On a full F3 screen that is about thirty extra Font::width walks per frame, each one resolving glyph cells over the whole line.

The width is carried in the placed tuple now, so the background pass reuses the number that placed the line. Same text, same positions, same pixels.

The pr_ready --quick block follows as a comment.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/2031 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `perf/debug-line-width-once` --- ### 📝 Commits (2) - [`dd45bf7`](https://github.com/horizon-rust/horizon/commit/dd45bf7740c50f09e6882a4c284d52edbf9a675b) F3: measure each line once per frame - [`54e4274`](https://github.com/horizon-rust/horizon/commit/54e4274b87e8c2d2003ee1be7e0574bf92fe408c) Merge remote-tracking branch 'origin/main' into perf/debug-line-width-once ### 📊 Changes **1 file changed** (+4 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/debug_overlay.rs` (+4 -5) </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. `debug_overlay::draw` measured every line twice per frame: once to place it, and again for its background box. On a full F3 screen that is about thirty extra `Font::width` walks per frame, each one resolving glyph cells over the whole line. The width is carried in the `placed` tuple now, so the background pass reuses the number that placed the line. Same text, same positions, same pixels. The `pr_ready --quick` block follows as a comment. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:13:33 +07:00
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#3952
No description provided.