[PR #5355] [MERGED] Cap spore blossom air particles at vanilla*s limit #6233

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

📋 Pull Request Information

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

Base: main ← Head: fix/spore-blossom-limit


📝 Commits (2)

  • 04a8b27 Cap spore blossom air particles at vanilla*s limit
  • 5a39410 Particles: skip the spore blossom scan while fewer particles are alive than its limit

📊 Changes

1 file changed (+40 additions, -1 deletions)

View changed files

📝 crates/horizon-client-render/src/particles.rs (+40 -1)

📄 Description

Spore blossom air particles carry ParticleLimit.SPORE_BLOSSOM (1000) and ParticleEngine.add refuses them once it is reached. Horizon has no per-particle cap at all, so a spore blossom keeps spawning past it.

The guard sits in the single spawn funnel, after the provider runs, so vanilla's RNG order is kept; it counts live plus queued particles of that type.

shortcut: noted in the code: this scans instead of keeping vanilla's counter, because a counter would need decrements in tick, clear and push. Upgrade if spore spawning ever shows in a profile.

One known difference, stated because it is real: vanilla decrements when a queued particle is dropped by the 16384 group reservoir, where this counts it until the next tick — so the cap can read full a tick early. Self-correcting, and far past 1000 particles.

Proven: the new test passes on a build box (1001 spore particles queue exactly 1000; 10 smoke particles pass uncapped).


🔄 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/5355 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/spore-blossom-limit` --- ### 📝 Commits (2) - [`04a8b27`](https://github.com/horizon-rust/horizon/commit/04a8b278aa66b4bba81fafe4e79e2bc4cf680f78) Cap spore blossom air particles at vanilla*s limit - [`5a39410`](https://github.com/horizon-rust/horizon/commit/5a3941068b529fa1bc5dd2f0874ba94039a99fbf) Particles: skip the spore blossom scan while fewer particles are alive than its limit ### 📊 Changes **1 file changed** (+40 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/particles.rs` (+40 -1) </details> ### 📄 Description Spore blossom air particles carry ParticleLimit.SPORE_BLOSSOM (1000) and ParticleEngine.add refuses them once it is reached. Horizon has no per-particle cap at all, so a spore blossom keeps spawning past it. The guard sits in the single spawn funnel, **after** the provider runs, so vanilla's RNG order is kept; it counts live plus queued particles of that type. shortcut: noted in the code: this scans instead of keeping vanilla's counter, because a counter would need decrements in tick, clear and push. Upgrade if spore spawning ever shows in a profile. One known difference, stated because it is real: vanilla decrements when a queued particle is dropped by the 16384 group reservoir, where this counts it until the next tick — so the cap can read full a tick early. Self-correcting, and far past 1000 particles. **Proven:** the new test passes on a build box (1001 spore particles queue exactly 1000; 10 smoke particles pass uncapped). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:16:10 +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#6233
No description provided.