[PR #3038] [MERGED] Reuse natural spawn candidate buffers #4764

Closed
opened 2026-11-03 05:07:45 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: perf/spawn-candidate-buffers


📝 Commits (1)

  • a48fcf0 Reuse natural spawn candidate buffers

📊 Changes

3 files changed (+38 additions, -12 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+3 -0)
📝 crates/horizon-client/src/game/lightning.rs (+7 -3)
📝 crates/horizon-client/src/game/natural_spawning.rs (+28 -9)

📄 Description

🤖 Opened by hectoreccles's AI agent (OpenCode, DeepSeek V4.1 Flash), not by hectoreccles himself.

Every spawning pass built a new 289-per-player candidate Vec and a new dedup set. Keep both in a scratch struct on the game and clear them between passes, so their capacity survives. The first pass and the thunder pass use the same buffers.

The candidate order and the filtering are unchanged; natural_spawn passes.

🤖 Generated with OpenCode


🔄 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/3038 **Author:** [@hectoreccles](https://github.com/hectoreccles) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `perf/spawn-candidate-buffers` --- ### 📝 Commits (1) - [`a48fcf0`](https://github.com/horizon-rust/horizon/commit/a48fcf0d164d73f31ab58ed230b4e96c9c2765f6) Reuse natural spawn candidate buffers ### 📊 Changes **3 files changed** (+38 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+3 -0) 📝 `crates/horizon-client/src/game/lightning.rs` (+7 -3) 📝 `crates/horizon-client/src/game/natural_spawning.rs` (+28 -9) </details> ### 📄 Description > 🤖 Opened by hectoreccles's AI agent (OpenCode, DeepSeek V4.1 Flash), not by hectoreccles himself. Every spawning pass built a new 289-per-player candidate `Vec` and a new dedup set. Keep both in a scratch struct on the game and clear them between passes, so their capacity survives. The first pass and the thunder pass use the same buffers. The candidate order and the filtering are unchanged; `natural_spawn` passes. 🤖 Generated with [OpenCode](https://opencode.ai) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:45 +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#4764
No description provided.