[PR #32] [MERGED] Retain shader failures and graphics timeout diagnostics #2281

Closed
opened 2026-11-02 15:54:36 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: shader-timeout-diagnostics


📝 Commits (2)

  • ed416c9 Retain shader failures and private graphics timeout stages
  • 6eee889 Record staged Mac shader timeout observations

📊 Changes

6 files changed (+442 additions, -7 deletions)

View changed files

➕ benchmarks/shader-worlds-2026-10-04/live-observations.json (+342 -0)
📝 docs/shader-world-smoke.md (+37 -1)
📝 mods/horizon-lab/src/test/java/dev/horizonlab/metrics/ClientGraphicsIntegration.java (+14 -0)
📝 tests/test_fixtures.py (+19 -0)
📝 tools/test_client_graphics.py (+21 -5)
📝 tools/test_culling_rays.py (+9 -1)

📄 Description

Mac shader probes previously reported only completed: false when their bounded timeout elapsed. Preserve selected initialization/readback stages, child exit status after cleanup and a whitelisted waiting-state snapshot so a timeout can be distinguished from inactive shaders or renderer failure. The typed timeout remains a RuntimeError for existing callers; cleanup deadlines and behavior are unchanged.

Retain all actual shader observations: local OpenGL passes with the pinned pack active and a visually inspected image; Vulkan plus DH fails before readback; removing DH renders an ordinary Vulkan world but Iris reports shaders inactive, which the strict assertion rejects. Both earlier hosted Mac shader cases time out; their cause is unknown. Playable defaults and the production game mod are unchanged.

Validation: 49 offline checks, public-tree and whitespace checks pass. Timeout/privacy coverage verifies selected stages/state and rejects private message/path contents. Required Windows, Linux and macOS CI passes. Diagnostic Mac shader repeat 37199837867 correctly fails both timed-out cases: OpenGL loads a world but retains a screen before readback; Vulkan initializes its device but provides no waiting-state snapshot. Actual shader activation and root causes remain unknown. These are startup/readback/activation checks, not physical-M2 shader performance or exhaustive visual-correctness claims.


🔄 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/32 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/4/2026 **Status:** ✅ Merged **Merged:** 10/4/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `shader-timeout-diagnostics` --- ### 📝 Commits (2) - [`ed416c9`](https://github.com/horizon-rust/horizon/commit/ed416c91cf980f136b7431314bccea7f266fe049) Retain shader failures and private graphics timeout stages - [`6eee889`](https://github.com/horizon-rust/horizon/commit/6eee889cf047ab9927ea53eca94d83f8454bebaf) Record staged Mac shader timeout observations ### 📊 Changes **6 files changed** (+442 additions, -7 deletions) <details> <summary>View changed files</summary> ➕ `benchmarks/shader-worlds-2026-10-04/live-observations.json` (+342 -0) 📝 `docs/shader-world-smoke.md` (+37 -1) 📝 `mods/horizon-lab/src/test/java/dev/horizonlab/metrics/ClientGraphicsIntegration.java` (+14 -0) 📝 `tests/test_fixtures.py` (+19 -0) 📝 `tools/test_client_graphics.py` (+21 -5) 📝 `tools/test_culling_rays.py` (+9 -1) </details> ### 📄 Description Mac shader probes previously reported only completed: false when their bounded timeout elapsed. Preserve selected initialization/readback stages, child exit status after cleanup and a whitelisted waiting-state snapshot so a timeout can be distinguished from inactive shaders or renderer failure. The typed timeout remains a RuntimeError for existing callers; cleanup deadlines and behavior are unchanged. Retain all actual shader observations: local OpenGL passes with the pinned pack active and a visually inspected image; Vulkan plus DH fails before readback; removing DH renders an ordinary Vulkan world but Iris reports shaders inactive, which the strict assertion rejects. Both earlier hosted Mac shader cases time out; their cause is unknown. Playable defaults and the production game mod are unchanged. Validation: 49 offline checks, public-tree and whitespace checks pass. Timeout/privacy coverage verifies selected stages/state and rejects private message/path contents. Required Windows, Linux and macOS CI passes. Diagnostic Mac shader repeat 37199837867 correctly fails both timed-out cases: OpenGL loads a world but retains a screen before readback; Vulkan initializes its device but provides no waiting-state snapshot. Actual shader activation and root causes remain unknown. These are startup/readback/activation checks, not physical-M2 shader performance or exhaustive visual-correctness claims. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:54:36 +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#2281
No description provided.