89 lines
5.8 KiB
Plaintext
89 lines
5.8 KiB
Plaintext
HORIZON LAB @PACK_VERSION@ — playable optimization experiments
|
||
|
||
YOUR MAC
|
||
1. Extract this ZIP. Double-click Mac-Start.command. If macOS asks, use Open
|
||
from the file's context menu. It installs the official Prism Launcher in
|
||
~/Applications if needed and opens the M2 balanced pack import.
|
||
Alternatively install Prism yourself: https://prismlauncher.org/download/macOS/
|
||
then Add Instance > Import > horizon-m2-balanced-@PACK_VERSION@.mrpack.
|
||
2. Sign into your Microsoft account in Prism yourself. No credentials are
|
||
shared with this project. You need an owned Minecraft Java license.
|
||
3. Enable Prism automatic Java downloads, using Java 25 ARM64 on Apple Silicon.
|
||
Instance > Edit > Settings > Java: maximum memory 6144 MiB, minimum 512 MiB.
|
||
If auto Java fails, install a native ARM64 Java 25 JDK and select it there.
|
||
4. Launch. Start with a new test world or a COPY of a world from Minecraft 26.3.
|
||
This release is 26.3; do not load an older-version world for a fair comparison.
|
||
Choose 1280x800 or 1920x1200 before testing; the Retina screen's full native
|
||
resolution is a substantially larger GPU workload.
|
||
|
||
WINDOWS / LINUX
|
||
Install Prism from https://prismlauncher.org/download/ and import the same packs.
|
||
Use Java 25 matching your CPU architecture. No Rust compilation is required.
|
||
|
||
PROFILES
|
||
- m2-balanced: 12 chunks of full-detail terrain plus 128 chunks of distant LOD.
|
||
Sodium, Lithium, FerriteCore, ImmediatelyFast, EntityCulling, Distant Horizons.
|
||
Recommended first test for your 16 GB M2 Pro. OpenGL, shaders not installed.
|
||
- baseline: original game renderer and simulation with Fabric API and the same
|
||
Horizon timing instrument. 12 full-detail chunks, no performance mods or LOD.
|
||
Use the SAME 6144 MiB maximum heap as m2-balanced for a fair comparison.
|
||
- adaptive: same render distances, worker count and mods as m2-balanced, with
|
||
experimental foreground-first terrain work scheduling. /horizon adaptive off
|
||
disables it; /horizon adaptive on enables it. /horizon status shows its budget.
|
||
It reduces DH background duty cycle when frames fall below a 60 FPS target or
|
||
heap usage exceeds 85%, then recovers gradually. Distant terrain can take longer
|
||
to appear. It does not reduce your view distance or change normal simulation.
|
||
This is a heuristic, not proof that background work caused a slow frame.
|
||
- low-memory: 8 full-detail chunks, no LOD. Set maximum memory 3072 MiB.
|
||
For a matched comparison set both instances to the same render distance.
|
||
- far-distance: 12 full-detail plus 256 LOD chunks. Start with 8192 MiB ONLY on
|
||
machines with enough physical RAM; this is not the recommended 16 GB Mac pack.
|
||
- cinematic: M2 pack plus Iris and Complementary Reimagined. Shaders start OFF.
|
||
Video Settings > Shader Packs lets you enable them. They cost GPU time; Mac
|
||
driver limitations may cause visual issues. Try after the balanced pack works.
|
||
- vulkan: experimental Vulkan preference with the game's OpenGL fallback,
|
||
no Iris. Test independently against OpenGL; faster is hardware-dependent.
|
||
|
||
All profiles retain simulation distance 12 and normal 20 TPS. These are initial
|
||
budgets, not promises of identical speed on every CPU/GPU. More distant LOD uses
|
||
simplified geometry; blocks nearby retain full detail. Building a fresh LOD cache
|
||
costs CPU/disk/memory. Wait for it to settle before judging steady-state FPS.
|
||
Background distant generation does not replace your normal gameplay simulation.
|
||
|
||
MEASURE ON YOUR M2 PRO
|
||
1. Import baseline too. Close every other Minecraft instance. Plug in the Mac,
|
||
disable Low Power Mode, and use the same window size, FPS cap, VSync setting,
|
||
render distance, simulation distance, world COPY, and camera route in each.
|
||
2. Warm each world for 2–3 minutes; allow distant generation to settle. Test new
|
||
chunk exploration separately from already-generated terrain. Do not compare
|
||
baseline's warmed world against an optimized world's first-time generation.
|
||
3. Press F8 in gameplay to start a 120-second recording; press again to stop.
|
||
On Mac you may need Fn+F8 if media keys take priority. You can rebind it in
|
||
Controls. Alternatively run /horizon bench baseline 120, close chat and play
|
||
your route. In balanced use /horizon bench m2 120. /horizon stop ends early.
|
||
/horizon status shows the profile. F8 also works when chat is restricted.
|
||
4. Open Prism's instance Minecraft folder > horizon-benchmarks. Each run writes
|
||
frames JSON/CSV and integrated-server ticks JSON/CSV. They include average FPS,
|
||
slowest-1%-average FPS, p95/p99 frame durations, stalls, sampled peak JVM heap,
|
||
process CPU time and GC data. Heap is sampled once per second during gameplay;
|
||
shorter peaks can be missed. CPU measurement spans the whole recording.
|
||
Menus, pauses and unfocused frames are excluded. Tick execution time is not
|
||
the observed TPS. JVM heap is not whole-process memory or unified GPU memory.
|
||
5. Repeat at least three times, alternating baseline/optimized. For daily play
|
||
turn VSync back on or cap FPS to your display; uncapped FPS spends more power.
|
||
|
||
DH changes clouds, chunk fade and transparency to blend its distant renderer;
|
||
assess visual differences as well as speed. For collector experiments test
|
||
Java 25's -XX:+UseZGC against its default G1 in both profiles; ZGC trades some
|
||
CPU/memory for shorter pauses and is not an automatic win on a 16 GB machine.
|
||
|
||
This build is a playable Java optimization stack with original measurement code.
|
||
It is NOT a completed Rust rewrite, a new custom renderer, or a measured M2 speedup.
|
||
It has no gameplay feature additions and is intended to preserve vanilla rules;
|
||
exhaustive vanilla equivalence has not been proven. Start on world copies.
|
||
Only original project binaries are embedded. Mods, the game and assets download
|
||
from their publishers with pinned hashes. No decompiled Minecraft is distributed.
|
||
|
||
Source, build commands and measured validation:
|
||
https://github.com/ludovic111/minecraft-optimization-lab
|