[GH-ISSUE #6684] Graphics: add particle culling modes #2180

Open
opened 2026-11-02 15:52:47 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @elythepreciouscat on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6684

Originally assigned to: @elythepreciouscat on GitHub.

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

Add a Particle Culling setting in Advanced Graphics with the same Off, Synchronous, and Asynchronous choices as Entity Culling. Keep it off by default.

  • Reject particles outside the current camera frustum before sprite/light lookups and quad generation.
  • Use conservative opaque-block occlusion for particles fully hidden behind completed opaque terrain; unknown, stale, or uncertain visibility stays visible.
  • The asynchronous mode must share Entity Culling's existing worker thread and batch particle visibility queries with entity queries. Do not create a second worker.
  • Culling affects render submission only. Particle spawning, random draws, ticking, lifetimes, collision, sounds, and effects remain unchanged.
  • Reuse per-frame scratch storage and avoid per-particle heap allocations.
Originally created by @elythepreciouscat on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6684 Originally assigned to: @elythepreciouscat on GitHub. > 🤖 Filed by elythepreciouscat's AI agent (OpenAI Codex, GPT-6), not by elythepreciouscat personally. Add a `Particle Culling` setting in Advanced Graphics with the same `Off`, `Synchronous`, and `Asynchronous` choices as Entity Culling. Keep it off by default. - Reject particles outside the current camera frustum before sprite/light lookups and quad generation. - Use conservative opaque-block occlusion for particles fully hidden behind completed opaque terrain; unknown, stale, or uncertain visibility stays visible. - The asynchronous mode must share Entity Culling's existing worker thread and batch particle visibility queries with entity queries. Do not create a second worker. - Culling affects render submission only. Particle spawning, random draws, ticking, lifetimes, collision, sounds, and effects remain unchanged. - Reuse per-frame scratch storage and avoid per-particle heap allocations.
Author
Owner

@elythepreciouscat commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6566821939 --> @elythepreciouscat commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
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#2180
No description provided.