promotional bannermobile promotional banner

Complexity Analyzer

A powerful framework that calculates the 'true cost' of every item, enabling deep analysis and balancing for complex modpacks.

File Details

complexityanalyzer-0.5.0-alpha.jar

  • A
  • May 11, 2026
  • 506.84 KB
  • 4
  • 1.21.1
  • NeoForge

File Name

complexityanalyzer-0.5.0-alpha.jar

Supported Versions

  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:complexity-analyzer-1377875:8073847"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

📦 Complexity Analyzer v0.5.0-alpha

⚡ Optimization & Performance

Primary focus on reducing GC pressure and minimizing overhead in critical sections.

  • FastUtil Everywhere: Standard Java collections replaced with high-performance fastutil counterparts (Reference2ObjectOpenHashMap, ObjectArrayList, etc.).
  • Zero-Allocation: Replaced Optional<T> with @Nullable and transitioned from Java Streams to classic for loops in critical sections.
  • Registry Caching: Centralized caching via GameRegistryManager for instant registry access.
  • Thread Management: Added Watchdog for thread termination control and moved tasks to the main server tick.

🧠 Analysis Core

  • SccCondensedSolver: New ultra-fast algorithm based on Strongly Connected Components (SCC) and Tarjan's algorithm.
  • Farming Simulation: Physical plant growth simulation via PlantSimulator and the new FarmingSource.
  • Recipes: Expanded support for transformations (potions, fireworks, bundles, bone meal on moss blocks).
  • Categories: ETERNAL renamed to UNOBTAINABLE for better clarity.

🌍 GeoScan Module

  • Modular Architecture: Module split into ScanCoordinator, ScanExecutor, DataRefiner, ChunkBatchProcessor, and ScanNotifier.
  • MSPT Monitor: Intelligent load management — automatic scan throttling during server lag.
  • Profiles: Added load presets (NORMAL, FAST, ULTRA_FAST, MAXIMUM).
  • Fast Biome Finder: Probabilistic biome search instead of the resource-intensive vanilla 3D scanner.
  • Thread Safety: Synchronized IO operations in GeoDataStorage using ReentrantLock.

⌨ Commands

Command Change Description
/complexity threads NEW! View thread pool status and load.
/complexity export mobs csv NEW! Quick export of mob data to CSV.
/complexity tree Transition to named arguments (e.g., depth <v> mode <m>).
/complexity geoscan start Profile is now a mandatory argument.

🛠 Configuration & Mixin

  • Config: Added MAX_THREADS and FARMING_TIME_COST_MULTIPLIER parameters. Removed GEOSCAN_CHUNK_TIMEOUT_MS.
  • Loot Simulation: Safe RNG modification in LootContext via accessors (Mixin) instead of sun.misc.Unsafe.
  • Accessors: Added access to private fields in smithing table recipes.