Performance Core

Server tick diagnostics, phase profiling, and targeted navigation optimizations for Fabric.

Performance Core adds server performance diagnostics, tick-phase profiling, and targeted navigation and autosave optimizations for Minecraft Java 26.3. It works on both dedicated and single-player servers and requires Java 25, Fabric Loader 0.20.1+, and Fabric API.

Key Features

  • Low-Overhead Tick & Phase Profiling: Measures TPS, average MSPT, and P50/P95/P99 tick times across six server tick phases, entity types, and the chunk loading/generation pipeline.
  • Adaptive Task Scheduler: Manages background work with priority queues, dependency graphs, deduplication, and automatic throttling during tick spikes.
  • Targeted Navigation Optimization: Eliminates unnecessary EmptyLevelChunk allocations at navigation region boundaries (avoid_empty_chunk_allocations=true by default, automatically disabled when Lithium is present).
  • Opt-In Autosave & Villager AI Experiments (0.2.0): Includes amortized chunk autosaving (amortized_autosave), async ground pathfinding, async POI acquisition, and per-tick job-site competitor caching.
  • Safe Mode & Public API: Built-in safe_mode fallback for diagnostics-only operation and a clean com.performancecore.api package for third-party mods.

Admin Commands

  • /performancecore status — Displays current TPS, average MSPT, and P50/P95/P99 tick times.
  • /performancecore report — Saves a full diagnostics and JVM/GC snapshot to config/performancecore-reports.
  • /performancecore profiler — Toggles extended GC and background summary reporting.
  • /performancecore phases — Shows P50/P95/P99 timings for the six server tick phases (requires tick_phase_metrics=true).
  • /performancecore entities — Lists top entity types by total tick time (requires entity_metrics=true).
  • /performancecore chunks — Shows queue and execution timings for chunk loading and generation (requires chunk_metrics=true).
  • /performancecore scheduler — Displays worker limits, queue counts, and background budget status.
  • /performancecore reload — Applies changes from config/performancecore.properties without restarting.

Configuration (config/performancecore.properties)

  • enabled (default: true) — Master switch for core diagnostics.
  • safe_mode (default: false) — Keeps basic metrics active while disabling optimizations and background tasks.
  • window_ticks (default: 600) — Sample window size for TPS/MSPT and phase percentiles (20–7200).
  • worker_mode (default: automatic) — Scheduler worker profile (automatic, conservative, balanced, aggressive, custom).
  • avoid_empty_chunk_allocations (default: true) — Skips EmptyLevelChunk allocations during boundary navigation checks (automatically skipped when Lithium is installed).
  • amortized_autosave (default: false) — Spreads scheduled chunk saves across ticks (amortized_autosave_chunks_per_tick=4 by default; disabled when C2ME is active).
  • Other experimental options (async_ground_pathfinding, async_poi_acquisition, cache_poi_competitor_memory, fast_chunk_nbt, fast_path_reconstruction, release_path_search_memory) are off by default.

Measured Benchmark Results

  • Navigation Region Boundary (avoid_empty_chunk_allocations=true): P95 tick time dropped from 19.25–19.96 ms to 1.47–1.53 ms, and P99 dropped from 19.65–21.77 ms to 1.51–2.44 ms. Route hashes and node counts matched vanilla behavior 100%.
  • Amortized Autosave (amortized_autosave=true, 64 chunks, 128 villagers, 512 filled chests): P99 tick time during autosave dropped from 44.14 ms to 17.57 ms, while full-window P95 rose from 5.38 ms to 7.15 ms due to multi-tick spreading.

Compatibility

Tested on Minecraft 26.3 alongside Lithium 0.26.4, Sodium 0.9.3, FerriteCore 9.0.0, and C2ME 0.4.2-alpha.0.126 (chunk and autosave hooks automatically step back when C2ME is detected).

Performance Core Team

profile avatar
  • 1
    Projects
  • 5
    Downloads