[PR #6758] [CLOSED] Pose mobs with glowing eyes on the GPU #7077

Closed
opened 2026-11-03 06:33:26 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6758
Author: @ludovic111
Created: 11/2/2026
Status: ❌ Closed

Base: perf/entity-gpu-skin ← Head: perf/entity-skin-eyes


📝 Commits (1)

  • ffebd72 Pose mobs with glowing eyes on the GPU

📊 Changes

4 files changed (+79 additions, -19 deletions)

View changed files

📝 crates/horizon-client-render/src/gfx/entity_skin.rs (+36 -8)
📝 crates/horizon-client-render/src/gfx/entity_skin.wgsl (+5 -3)
📝 crates/horizon-client/src/mobs/render.rs (+19 -6)
📝 crates/horizon-client/src/mobs/skin.rs (+19 -2)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Stacked on #6757 (pose mob models on the GPU). GitHub retargets this PR when #6757 merges.

What

Spiders, endermen, phantoms and the other mobs with an eyes layer stayed on the CPU posing path. Their eyes draw unshaded (no normal) with the HDR eyes tier in the overlay's high bits, and the CPU path sets both on the vertices after drawing them. Jobs now carry flags:

  • GLINT, as before;
  • UNLIT, which writes a zero normal.

The eyes tier rides in the job's overlay word. The Warden's fading layers stay on the CPU path (they are translucent).

  • the_shader_writes_what_the_cpu_reference_computes gets a third, unlit job. The device output still matches the CPU reference to the byte, and the unlit vertices have no normal.
  • posed_on_the_gpu_every_mob_draws_what_the_cpu_draws now requires the spider and the enderman, eyes included, to take the GPU path and match the CPU vertices to the byte.

In the stress_mobs scene, one mob in eight is a spider. The profile of #6757 showed them as the remaining draw_normals time: 19.6% of render_visible. The A/B for the whole stack comes once the series is on main.

Checks

These ran on playhorizon instead of pr_ready.py (the slot-limited box):

pending

🤖 Generated with Claude Code


🔄 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/6758 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/2/2026 **Status:** ❌ Closed **Base:** `perf/entity-gpu-skin` ← **Head:** `perf/entity-skin-eyes` --- ### 📝 Commits (1) - [`ffebd72`](https://github.com/horizon-rust/horizon/commit/ffebd722fb5eac00ae76b9791c486e618bd1c1b3) Pose mobs with glowing eyes on the GPU ### 📊 Changes **4 files changed** (+79 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/gfx/entity_skin.rs` (+36 -8) 📝 `crates/horizon-client-render/src/gfx/entity_skin.wgsl` (+5 -3) 📝 `crates/horizon-client/src/mobs/render.rs` (+19 -6) 📝 `crates/horizon-client/src/mobs/skin.rs` (+19 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Stacked on #6757 (pose mob models on the GPU). GitHub retargets this PR when #6757 merges. ## What Spiders, endermen, phantoms and the other mobs with an eyes layer stayed on the CPU posing path. Their eyes draw unshaded (no normal) with the HDR eyes tier in the overlay's high bits, and the CPU path sets both on the vertices after drawing them. Jobs now carry flags: - `GLINT`, as before; - `UNLIT`, which writes a zero normal. The eyes tier rides in the job's overlay word. The Warden's fading layers stay on the CPU path (they are translucent). - `the_shader_writes_what_the_cpu_reference_computes` gets a third, unlit job. The device output still matches the CPU reference to the byte, and the unlit vertices have no normal. - `posed_on_the_gpu_every_mob_draws_what_the_cpu_draws` now requires the spider and the enderman, eyes included, to take the GPU path and match the CPU vertices to the byte. In the `stress_mobs` scene, one mob in eight is a spider. The profile of #6757 showed them as the remaining `draw_normals` time: 19.6% of `render_visible`. The A/B for the whole stack comes once the series is on main. ## Checks These ran on playhorizon instead of `pr_ready.py` (the slot-limited box): ``` pending ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:33:26 +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#7077
No description provided.