[GH-ISSUE #3157] LOD issue: showing overworld LOD instead of the end on relog #851

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

Originally created by @pyXploit on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3157

Image
Originally created by @pyXploit on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3157 <img width="1920" height="1080" alt="Image" src="https://github.com/user-attachments/assets/102005c6-e524-4eb4-bfbd-da730fc00843" />
Author
Owner

@d3grando commented on GitHub (Oct 29, 2026):

🤖 Agent: triage by d3grando's AI agent (Claude Code), not by d3grando themselves.

I could not reproduce this on current main (b19b4e92d, Windows 11, single player on the default server thread, LOD Distance 256, render distance 6). In every case below the End showed End far terrain (void around the main island, end stone islands around x=1500) and no Overworld terrain:

  • Creative world, /execute in minecraft:the_end run tp, then Save and Quit to Title and reopen the world from Select World: 7 times, at the main island and over the void at 200 150 200.
  • The same, closing the game and starting it again with the player saved in the End (main island and outer islands at 1500 110 0).
  • Entering the End through an End portal from the Overworld.

How the far terrain picks its source: prepare_lod asks the server thread for game.streaming.lod_source(), and the server thread keeps one level "in place" at a time (game/levels.rs), the last one it ticked. If that call were answered while the Overworld is in place and the player is already in the End (for example in the first tick after joining), the End would get the Overworld's far terrain until the next dimension change. I logged the in-place level at that call during each of the relogs above: it was always the End, so this did not happen here. It may still happen on a slower machine or with a different join order. Reading the requested dimension's level explicitly (enter_command_level(dim) around the read, as commands do) would rule it out. I have that change ready but did not open a PR, because I can't show it fixing anything yet.

To narrow it down, could the reporter say:

  • the Horizon version and LOD Distance / Far Detail settings;
  • how you "relogged": Save and Quit to Title and reopening the world, closing the game and starting it again, or reconnecting to a LAN or dedicated server;
  • whether the world was opened to LAN or played with --in-frame, and whether any mods that set far terrain were running;
  • how you got to those islands (End gateway, /tp, elytra), and whether it happens every time or only sometimes;
  • the log (logs/latest.log) from a session where it happened.
<!-- gh-comment-id:6492788472 --> @d3grando commented on GitHub (Oct 29, 2026): 🤖 Agent: triage by d3grando's AI agent (Claude Code), not by d3grando themselves. I could not reproduce this on current main (b19b4e92d, Windows 11, single player on the default server thread, LOD Distance 256, render distance 6). In every case below the End showed End far terrain (void around the main island, end stone islands around x=1500) and no Overworld terrain: - Creative world, `/execute in minecraft:the_end run tp`, then Save and Quit to Title and reopen the world from Select World: 7 times, at the main island and over the void at 200 150 200. - The same, closing the game and starting it again with the player saved in the End (main island and outer islands at 1500 110 0). - Entering the End through an End portal from the Overworld. How the far terrain picks its source: `prepare_lod` asks the server thread for `game.streaming.lod_source()`, and the server thread keeps one level "in place" at a time (`game/levels.rs`), the last one it ticked. If that call were answered while the Overworld is in place and the player is already in the End (for example in the first tick after joining), the End would get the Overworld's far terrain until the next dimension change. I logged the in-place level at that call during each of the relogs above: it was always the End, so this did not happen here. It may still happen on a slower machine or with a different join order. Reading the requested dimension's level explicitly (`enter_command_level(dim)` around the read, as commands do) would rule it out. I have that change ready but did not open a PR, because I can't show it fixing anything yet. To narrow it down, could the reporter say: - the Horizon version and LOD Distance / Far Detail settings; - how you "relogged": Save and Quit to Title and reopening the world, closing the game and starting it again, or reconnecting to a LAN or dedicated server; - whether the world was opened to LAN or played with `--in-frame`, and whether any mods that set far terrain were running; - how you got to those islands (End gateway, `/tp`, elytra), and whether it happens every time or only sometimes; - the log (`logs/latest.log`) from a session where it happened.
Author
Owner

@rdbtCVS commented on GitHub (Oct 31, 2026):

Couldn't be reproduced on main,

<!-- gh-comment-id:6549345580 --> @rdbtCVS commented on GitHub (Oct 31, 2026): Couldn't be reproduced on main,
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#851
No description provided.