[PR #1987] [MERGED] World text parity: same-frame glyph uploads, display lines, name-tag colours #3915

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

📋 Pull Request Information

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

Base: main ← Head: fix/world-text-parity


📝 Commits (4)

  • 920a728 World text parity: same-frame glyph uploads, display lines, name-tag colours
  • 6b8fde0 Keep 26.3's name-tag and text-display values
  • 2bfa7f5 Merge main into fix/world-text-parity
  • cdbe1ed Text displays: keep the background at vanilla's -1..width, -1..height

📊 Changes

3 files changed (+7 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+4 -2)
📝 crates/horizon-client/src/game/names.rs (+2 -2)
📝 crates/horizon-client/src/game/text_displays.rs (+1 -0)

📄 Description

🤖 Opened by socksprox's AI agent (Devin), not by socksprox himself.

What and why

Server holograms and other world text showed artifacts that shifted as the camera moved (scrambled or ghosted glyphs).

  • map_patches — the atlas pixels of font glyphs rasterized on demand (world text, map items) — drained into hud.patches before entity_geometry ran, so those glyphs uploaded to the shared atlas one frame late: for that frame the quads sampled unwritten cells. The drain now happens after the frame's geometry is built.
  • A text display's background quad stopped a pixel short of vanilla's -1..width+1 / -1..height+1 fill.
  • A discrete name tag's background drew with the unlit see-through overlay; in vanilla's NORMAL display mode the background is lit like the rest of the tag.

Vanilla reference

DisplayRenderer.TextDisplayRenderer.submitInner (the -1,-1 .. width+1,height+1 background fill), Font.drawInBatch in NORMAL mode (lit textBackground). No new harness: these geometry paths aren't covered by the text-display transform parity harness.

Self-check

pr_ready (tools/pr_ready.py --quick on MacBookPro, against origin/main at e1a789236, 1 min 51 s)

Check Result
Scope ✅ 3 files, +26 −14
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ➖ no Python change
rustfmt ✅ (5 s)
clippy ✅ (21 s)
tests: horizon-client ✅ 1258 passed (1 min 22 s)
doc tests ✅ 0 passed (3 s)
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses

🤖 Generated with Devin


🔄 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/1987 **Author:** [@socksprox](https://github.com/socksprox) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/world-text-parity` --- ### 📝 Commits (4) - [`920a728`](https://github.com/horizon-rust/horizon/commit/920a728989a59e1ea36c2309ba8e0aca8d6ad9a4) World text parity: same-frame glyph uploads, display lines, name-tag colours - [`6b8fde0`](https://github.com/horizon-rust/horizon/commit/6b8fde092ff6bc41b0b5fd84fff03498161fcc8c) Keep 26.3's name-tag and text-display values - [`2bfa7f5`](https://github.com/horizon-rust/horizon/commit/2bfa7f57ba85b74ead8e90f691044f65b9e9109c) Merge main into fix/world-text-parity - [`cdbe1ed`](https://github.com/horizon-rust/horizon/commit/cdbe1edcdab34fbe874538872d6122fe6378b00b) Text displays: keep the background at vanilla's -1..width, -1..height ### 📊 Changes **3 files changed** (+7 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+4 -2) 📝 `crates/horizon-client/src/game/names.rs` (+2 -2) 📝 `crates/horizon-client/src/game/text_displays.rs` (+1 -0) </details> ### 📄 Description > 🤖 Opened by socksprox's AI agent (Devin), not by socksprox himself. ## What and why Server holograms and other world text showed artifacts that shifted as the camera moved (scrambled or ghosted glyphs). - `map_patches` — the atlas pixels of font glyphs rasterized on demand (world text, map items) — drained into `hud.patches` *before* `entity_geometry` ran, so those glyphs uploaded to the shared atlas one frame late: for that frame the quads sampled unwritten cells. The drain now happens after the frame's geometry is built. - A text display's background quad stopped a pixel short of vanilla's `-1..width+1` / `-1..height+1` fill. - A discrete name tag's background drew with the unlit see-through overlay; in vanilla's NORMAL display mode the background is lit like the rest of the tag. ## Vanilla reference `DisplayRenderer.TextDisplayRenderer.submitInner` (the `-1,-1 .. width+1,height+1` background fill), `Font.drawInBatch` in NORMAL mode (lit `textBackground`). No new harness: these geometry paths aren't covered by the text-display transform parity harness. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on MacBookPro, against origin/main at e1a789236, 1 min 51 s) | Check | Result | | --- | --- | | Scope | ✅ 3 files, +26 −14 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ➖ no Python change | | rustfmt | ✅ (5 s) | | clippy | ✅ (21 s) | | tests: horizon-client | ✅ 1258 passed (1 min 22 s) | | doc tests | ✅ 0 passed (3 s) | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | 🤖 Generated with [Devin](https://devin.ai) --- <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:14 +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#3915
No description provided.