[GH-ISSUE #308] [worldgen] decoration results depend on the order chunks generate in (world spawn Y, Nether fungus/basalt) #83

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

Originally created by @ludovic111 on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/308

Horizon's decorated chunks can differ depending on the order in which neighbouring chunks are generated and decorated:

  • world_spawn harness: on main it matches 60/60 seeds, but with the faster loading of #269/#280 (merged) different seeds come out a few blocks off in Y on each run: 58/60 (5882138163895760678: vanilla Y 70 / Horizon 73; 5376602537425814319: vanilla 77 or 83 / Horizon 60), then 59/60 (-5296387317982839690: vanilla 71 / Horizon 73). The seeds that differ are ones where vanilla itself returned different spawns between runs (the harness lists them), so vanilla is order-dependent here too; Horizon's answers are outside vanilla's set, though.
  • Nether (#249 check): huge fungus caps, roots and basalt deltas differ from fresh vanilla in 129/156 chunks, already before #284, with or without walking away.

Likely cause: features that write into neighbouring chunks (trees, huge fungi, deltas) placed in an order that differs from vanilla's (ChunkStatus.FEATURES with the 3x3 WorldGenRegion, decoration order by chunk position and feature step), or reading neighbours that are not yet decorated where vanilla would wait. Next step: a harness that generates the same area in two different chunk orders in Horizon and compares, then align the decoration scheduling with vanilla's ChunkMap/ChunkTaskDispatcher ordering guarantees.

🤖 Generated with Claude Code

Originally created by @ludovic111 on GitHub (Oct 15, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/308 Horizon's decorated chunks can differ depending on the order in which neighbouring chunks are generated and decorated: - **world_spawn harness:** on main it matches 60/60 seeds, but with the faster loading of #269/#280 (merged) different seeds come out a few blocks off in Y on each run: 58/60 (5882138163895760678: vanilla Y 70 / Horizon 73; 5376602537425814319: vanilla 77 or 83 / Horizon 60), then 59/60 (-5296387317982839690: vanilla 71 / Horizon 73). The seeds that differ are ones where **vanilla itself** returned different spawns between runs (the harness lists them), so vanilla is order-dependent here too; Horizon's answers are outside vanilla's set, though. - **Nether (#249 check):** huge fungus caps, roots and basalt deltas differ from fresh vanilla in 129/156 chunks, already before #284, with or without walking away. Likely cause: features that write into neighbouring chunks (trees, huge fungi, deltas) placed in an order that differs from vanilla's (ChunkStatus.FEATURES with the 3x3 WorldGenRegion, decoration order by chunk position and feature step), or reading neighbours that are not yet decorated where vanilla would wait. Next step: a harness that generates the same area in two different chunk orders in Horizon and compares, then align the decoration scheduling with vanilla's ChunkMap/ChunkTaskDispatcher ordering guarantees. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bsakaguchi 2026-11-02 15:36:12 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ludovic111 commented on GitHub (Oct 21, 2026):

Claimed by ludovic on Discord (GitHub: ludovic111), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #308).

<!-- gh-comment-id:6320738606 --> @ludovic111 commented on GitHub (Oct 21, 2026): Claimed by `ludovic` on Discord (GitHub: `ludovic111`), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #308). <!-- kira:work -->
Author
Owner

@ludovic111 commented on GitHub (Oct 21, 2026):

🤖 Agent: closing as no longer reproducible on main (ae21bd54 plus the P4 branches #1109–#1112, which don't touch decoration). What was tried:

  • World spawn: tools/test_world_spawn_parity.py (the 60 seeds of the harness, dedicated servers on both sides): 60/60 match, including the three seeds this issue listed: 5882138163895760678 (vanilla gave 0 70 0 and 0 73 0 across runs, Horizon 0 73 0), 5376602537425814319 (both 544 60 448) and -5296387317982839690 (both -16 73 16). Vanilla itself returned two different spawns for 2 seeds (5882138163895760678, -2080727421395798566), and Horizon's answer was one of vanilla's both times.
  • Nether fungus and basalt: test_decorated_region_parity.py's comparison, which decorates every chunk in vanilla's order around a player (decoration_order::vanilla_order, the order the streamer follows), run for the Nether: 6 sites, view 4 (169 chunks each, 1,014 in all), the #249 bastion site on -1860902098141295193 plus crimson forest, warped forest, basalt deltas and soul sand valley on seeds 12345 and 1891623539983467248. 0 differing chunks: blocks, quart biomes and block entities all match.
  • Overworld: the decorated_region harness (trees, ores, sculk, geodes in vanilla's order), chunk_generation (now also comparing postprocessing marks, #1109), terrain, tree_feature, structure_density and worldgen all pass.

The live order follows vanilla's ticket order since #55 (147ea666) and its later rework (cf97a5e1, #835). Where vanilla's own result depends on its worker threads (trees overlapping on chunk corners), the harnesses accept any of vanilla's answers. If a seed or spot still differs in play, please reopen with the seed and coordinates.

<!-- gh-comment-id:6326815776 --> @ludovic111 commented on GitHub (Oct 21, 2026): 🤖 Agent: closing as no longer reproducible on main (ae21bd54 plus the P4 branches #1109–#1112, which don't touch decoration). What was tried: - **World spawn:** `tools/test_world_spawn_parity.py` (the 60 seeds of the harness, dedicated servers on both sides): **60/60 match**, including the three seeds this issue listed: 5882138163895760678 (vanilla gave 0 70 0 and 0 73 0 across runs, Horizon 0 73 0), 5376602537425814319 (both 544 60 448) and -5296387317982839690 (both -16 73 16). Vanilla itself returned two different spawns for 2 seeds (5882138163895760678, -2080727421395798566), and Horizon's answer was one of vanilla's both times. - **Nether fungus and basalt:** `test_decorated_region_parity.py`'s comparison, which decorates every chunk in vanilla's order around a player (`decoration_order::vanilla_order`, the order the streamer follows), run for the Nether: 6 sites, view 4 (169 chunks each, 1,014 in all), the #249 bastion site on -1860902098141295193 plus crimson forest, warped forest, basalt deltas and soul sand valley on seeds 12345 and 1891623539983467248. **0 differing chunks**: blocks, quart biomes and block entities all match. - **Overworld:** the decorated_region harness (trees, ores, sculk, geodes in vanilla's order), chunk_generation (now also comparing postprocessing marks, #1109), terrain, tree_feature, structure_density and worldgen all pass. The live order follows vanilla's ticket order since #55 (147ea666) and its later rework (cf97a5e1, #835). Where vanilla's own result depends on its worker threads (trees overlapping on chunk corners), the harnesses accept any of vanilla's answers. If a seed or spot still differs in play, please reopen with the seed and coordinates.
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#83
No description provided.