[PR #3095] [MERGED] Server list: build each row's sprite key once #4799

Closed
opened 2026-11-03 05:08:02 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: perf/server-row-sprite-path


📝 Commits (1)

  • b9494af Server list: build each row's sprite key once

📊 Changes

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

View changed files

📝 crates/horizon-client/src/multiplayer.rs (+4 -12)

📄 Description

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

Each server row built its status icon's short name first
(format!("server_list/ping_{n}"), format!("server_list/pinging_{n}"), or
"server_list/unreachable".to_owned()) and then wrapped that in
format!("gui/sprites/{sprite}") for the atlas lookup: two strings per row per
frame on the multiplayer screen.

The match arms now build the full key and sprite_scaled takes it directly.
The keys are the same strings as before.

cargo clippy -p horizon-client --all-targets -- -D warnings → clean,
Finished dev profile. No benchmark isolates the server list; the change
stands on the allocation it removes per row per frame.


🔄 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/3095 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `perf/server-row-sprite-path` --- ### 📝 Commits (1) - [`b9494af`](https://github.com/horizon-rust/horizon/commit/b9494af9765e7993a8eaef6071adb333b30b5cb3) Server list: build each row's sprite key once ### 📊 Changes **1 file changed** (+4 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/multiplayer.rs` (+4 -12) </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. Each server row built its status icon's short name first (`format!("server_list/ping_{n}")`, `format!("server_list/pinging_{n}")`, or `"server_list/unreachable".to_owned()`) and then wrapped that in `format!("gui/sprites/{sprite}")` for the atlas lookup: two strings per row per frame on the multiplayer screen. The match arms now build the full key and `sprite_scaled` takes it directly. The keys are the same strings as before. `cargo clippy -p horizon-client --all-targets -- -D warnings` → clean, `Finished dev profile`. No benchmark isolates the server list; the change stands on the allocation it removes per row per frame. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:08:02 +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#4799
No description provided.