[PR #1078] [MERGED] docs: which Java performance mods' techniques apply to Horizon (survey) #3027

Closed
opened 2026-11-02 16:00:55 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: docs/java-perf-mods-survey


📝 Commits (1)

  • 1a89c52 docs: survey of the Java performance mods' techniques for Horizon

📊 Changes

1 file changed (+130 additions, -0 deletions)

View changed files

➕ docs/performance/java-perf-mods.md (+130 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What

docs/performance/java-perf-mods.md: the survey asked for in #991 (requested by famescare on Discord). Eight Java performance mods are covered: Lithium, FerriteCore, ImmediatelyFast, Gnetum, ScalableLux, Structure Layout Optimizer, AsyncParticles and Ixeris. For every technique the doc gives the vanilla cost it targets, whether Horizon already avoids that cost (with the file or PR that does it), and a verdict: has, n/a (a JVM, OpenGL or GLFW cost Horizon never pays), later (missing and worth measuring) or no (it would change vanilla's look or behaviour, or gains too little).

Rules followed: techniques only, from each mod's public page or docs (linked in the doc). No mod code was read, so nothing LGPL comes in.

Findings

  • Most of FerriteCore, much of Lithium (collections, allocation, maths, chunk-access locks) and the GL side of ImmediatelyFast are JVM or GL costs. Horizon's design doesn't pay them.
  • Horizon already has the batching, the shared models and shapes, the section-indexed POIs, the random-tick skipping, the tick heap and the worker lighting these mods add to vanilla.
  • Worth measuring, ordered by expected gain: (1) hopper and block-entity sleeping; (2) vanilla's particle frustum point test (QuadParticleGroup.extractRenderState; Horizon doesn't do it, so this is a parity gap too), then GPU-built particle quads; (3) jigsaw shortcuts that keep layouts identical; (4) Windows raw input read in batches for 8000 Hz mice. Profile first: pathfinding, explosions, item merging (after #996), map walls, sign-heavy scenes.
  • Gnetum's split HUD redraw and AsyncParticles' delayed texture tick are no: they change what players see or when.

Per #991's own step 2, the "worth measuring" items would each get an issue. Instead, they went into the LATER list in horizon-parity/FEATURES.md (item 4c), following the 0-open-issues rule.

Self-check

  • Docs only, no code: fmt, clippy and tests are unaffected.
  • tools/parity.py --changed origin/main --list selects all 325 harnesses, because shared-local has recorded dependencies for only one harness since its 10-21 rebuild. So no harness was run locally for a Markdown file. CI's parity job covers the branch.

Fixes #991

🤖 Generated with Claude Code


🔄 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/1078 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/21/2026 **Status:** ✅ Merged **Merged:** 10/21/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `docs/java-perf-mods-survey` --- ### 📝 Commits (1) - [`1a89c52`](https://github.com/horizon-rust/horizon/commit/1a89c52173334c87d5cd624934a0ce4454662d0c) docs: survey of the Java performance mods' techniques for Horizon ### 📊 Changes **1 file changed** (+130 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `docs/performance/java-perf-mods.md` (+130 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What `docs/performance/java-perf-mods.md`: the survey asked for in #991 (requested by **famescare** on Discord). Eight Java performance mods are covered: Lithium, FerriteCore, ImmediatelyFast, Gnetum, ScalableLux, Structure Layout Optimizer, AsyncParticles and Ixeris. For every technique the doc gives the vanilla cost it targets, whether Horizon already avoids that cost (with the file or PR that does it), and a verdict: **has**, **n/a** (a JVM, OpenGL or GLFW cost Horizon never pays), **later** (missing and worth measuring) or **no** (it would change vanilla's look or behaviour, or gains too little). Rules followed: techniques only, from each mod's public page or docs (linked in the doc). No mod code was read, so nothing LGPL comes in. ## Findings - Most of FerriteCore, much of Lithium (collections, allocation, maths, chunk-access locks) and the GL side of ImmediatelyFast are JVM or GL costs. Horizon's design doesn't pay them. - Horizon already has the batching, the shared models and shapes, the section-indexed POIs, the random-tick skipping, the tick heap and the worker lighting these mods add to vanilla. - Worth measuring, ordered by expected gain: (1) hopper and block-entity sleeping; (2) vanilla's particle frustum point test (`QuadParticleGroup.extractRenderState`; Horizon doesn't do it, so this is a parity gap too), then GPU-built particle quads; (3) jigsaw shortcuts that keep layouts identical; (4) Windows raw input read in batches for 8000 Hz mice. Profile first: pathfinding, explosions, item merging (after #996), map walls, sign-heavy scenes. - Gnetum's split HUD redraw and AsyncParticles' delayed texture tick are **no**: they change what players see or when. Per #991's own step 2, the "worth measuring" items would each get an issue. Instead, they went into the LATER list in `horizon-parity/FEATURES.md` (item 4c), following the 0-open-issues rule. ## Self-check - Docs only, no code: fmt, clippy and tests are unaffected. - `tools/parity.py --changed origin/main --list` selects all 325 harnesses, because shared-local has recorded dependencies for only one harness since its 10-21 rebuild. So no harness was run locally for a Markdown file. CI's parity job covers the branch. Fixes #991 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 16:00:55 +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#3027
No description provided.