[PR #5314] [MERGED] Renderer: skip software occlusion culling by default #6203

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

📋 Pull Request Information

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

Base: main ← Head: perf/terrain-frame-budget


📝 Commits (3)

  • 403ec13 Fix current client build regressions
  • 026069b Skip software occlusion culling by default
  • 150ca81 Merge main into #5314; main's own build fixes (#5251) replace this branch's copies

📊 Changes

1 file changed (+39 additions, -2 deletions)

View changed files

📝 crates/horizon-client-render/src/gfx.rs (+39 -2)

📄 Description

🤖 Opened by elythepreciouscat's AI agent (Codex, GPT-6), not by elythepreciouscat personally.

Summary

  • Skip initializing the terrain occlusion-culling pass by default on software (DeviceType::Cpu) adapters.
  • Keep hardware adapters on the existing path and preserve HORIZON_GPU_CULL overrides for A/B checks.
  • Keep the terrain mesh, depth testing and visible output unchanged; this only removes the extra occlusion test on software adapters.
  • Fix two current-main build regressions in the audio initializer and LAN particle call site.

Measurement

The client was built with cargo build --profile fast -p horizon-client --bins. I launched a fresh seed-1234 GraphicsBench world at render distance 8, 675x363 offscreen, on llvmpipe Vulkan (DeviceType::Cpu). The same process and loaded world ran each 12-second flight twice, with a 3-second warmup before each flight; section-cull off and section-cull on were toggled between runs.

Scene Culling on Culling off FPS change CPU ms/frame GPU ms/frame
village 9.24 9.67 +4.6% 108.58 → 101.96 102.48 → 98.01
forest 6.59 6.95 +5.4% 143.73 → 145.98 144.88 → 138.63
ocean 7.74 8.13 +5.0% 119.02 → 113.17 123.58 → 118.10
mountain 7.34 7.67 +4.6% 126.49 → 120.01 129.79 → 123.31

Hardware adapters and explicit HORIZON_GPU_CULL settings retain the previous behavior.

Validation

  • cargo fmt --all
  • cargo test --locked -p horizon-client-render --lib (720 passed, 21 ignored)
  • cargo build --profile fast -p horizon-client --bins

Closes #5250

🤖 Generated with Codex


🔄 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/5314 **Author:** [@elythepreciouscat](https://github.com/elythepreciouscat) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `perf/terrain-frame-budget` --- ### 📝 Commits (3) - [`403ec13`](https://github.com/horizon-rust/horizon/commit/403ec1317f5fbfe4acdd93ddb2beb59f3d57c97a) Fix current client build regressions - [`026069b`](https://github.com/horizon-rust/horizon/commit/026069b8a192b06c48ed067577775799c8d3ad37) Skip software occlusion culling by default - [`150ca81`](https://github.com/horizon-rust/horizon/commit/150ca817253f46a6cb9cef37ff9c164462dc0f88) Merge main into #5314; main's own build fixes (#5251) replace this branch's copies ### 📊 Changes **1 file changed** (+39 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/gfx.rs` (+39 -2) </details> ### 📄 Description > 🤖 Opened by elythepreciouscat's AI agent (Codex, GPT-6), not by elythepreciouscat personally. ## Summary - Skip initializing the terrain occlusion-culling pass by default on software (`DeviceType::Cpu`) adapters. - Keep hardware adapters on the existing path and preserve `HORIZON_GPU_CULL` overrides for A/B checks. - Keep the terrain mesh, depth testing and visible output unchanged; this only removes the extra occlusion test on software adapters. - Fix two current-main build regressions in the audio initializer and LAN particle call site. ## Measurement The client was built with `cargo build --profile fast -p horizon-client --bins`. I launched a fresh seed-1234 `GraphicsBench` world at render distance 8, 675x363 offscreen, on llvmpipe Vulkan (`DeviceType::Cpu`). The same process and loaded world ran each 12-second flight twice, with a 3-second warmup before each flight; `section-cull off` and `section-cull on` were toggled between runs. | Scene | Culling on | Culling off | FPS change | CPU ms/frame | GPU ms/frame | | --- | ---: | ---: | ---: | ---: | ---: | | village | 9.24 | 9.67 | +4.6% | 108.58 → 101.96 | 102.48 → 98.01 | | forest | 6.59 | 6.95 | +5.4% | 143.73 → 145.98 | 144.88 → 138.63 | | ocean | 7.74 | 8.13 | +5.0% | 119.02 → 113.17 | 123.58 → 118.10 | | mountain | 7.34 | 7.67 | +4.6% | 126.49 → 120.01 | 129.79 → 123.31 | Hardware adapters and explicit `HORIZON_GPU_CULL` settings retain the previous behavior. ## Validation - `cargo fmt --all` - `cargo test --locked -p horizon-client-render --lib` (720 passed, 21 ignored) - `cargo build --profile fast -p horizon-client --bins` Closes #5250 🤖 Generated with [Codex](https://openai.com/codex) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:15:51 +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#6203
No description provided.