Bobochop Unbound-1.6.6.zip
What's new
================================================================================
CHANGELOG - BOBOCHOP UNBOUND (PERFORMANCE & MEMORY OPTIMIZATION)
================================================================================
[OPTIMIZED] Realistic Ecosystem Phase 1 (kubejs/server_scripts/realistic_ecosystem_phase1.js)
--------------------------------------------------------------------------------
- Memory Retention & Map Caps:
* Added FIFO-bounded map helper `setBoundedEntry()` (hard cap: 1000 entries)
for `reportedFailures`, `tickDiagnostics`, and `sampledThisSession`.
* Added `forgetChunk(key)` cleanup on chunk unload / neighborhood exit in
discovery and sample-budget loops (clears `sampledThisSession`,
`tickDiagnostics`, and matching `reportedFailures` entries).
* Cleared `tickDiagnostics` and `reportedFailures` on `clockReset`.
- GC Churn & Generator Overhead Reduction:
* Replaced `measuredWork()` `function*` wrapper with direct raw iterator
passthrough when profiling is inactive, and prototype-based `TimedWork`
when `/ecosystem_perf` is active (eliminates per-yield* ES6Generator and
CallFrame allocations in normal gameplay).
* Replaced per-call closures in `section()` with shared `timedInvoke()`
helper.
[DIAGNOSED / VERIFIED] Spark Server, Heap & Client Profiling
--------------------------------------------------------------------------------
- Server Ticks (`/spark profiler --only-ticks-over 50`):
* Verified no runaway mod entity or KubeJS tick spike (`onPostLevelTick`
~2.44%, mod entities <0.1%).
- Heap Summary (`/spark heapsummary`):
* Identified Rhino/KubeJS retention (`ScriptableObject$Slot` / `ES6Generator`
/ `CallFrame`) and verified live runtime stability after patch
(`/ecosystem_perf`: `invalid samples=0`, `scanForest=0.1188 ms`).
- Client Render Thread (`/sparkc profiler --only-ticks-over 33`):
* Isolated main frame-time drivers to `Oculus` (32.20%), `Embeddium` (9.37%),
`SimpleBedrockModel` + `TaCZ` (14.56%), and `ImmediatelyFast` (8.01%);
KubeJS client scripts confirmed negligible.
================================================================================
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include