Error Triage Hub (10)
Carbon vs Oxide Harmony Hook Overhead & Memory Churn
Oxide reflection boxing allocates garbage on hot paths; Carbon IL/Harmony patching trims per-tick GC churn.
Delta: -18% to -28% C# GC allocs | Target: 250+ pop modded
Why Hot-Path Boxing Hurts High-Pop Modded Wipes
High-frequency hooks such as CanBeTargeted, OnEntityTakeDamage, and OnPlayerInput fire thousands of times per second on 300-pop servers. Boxing value types into object[] arrays in standard Oxide pushes rapid Gen-0 allocations into the Unity Mono heap.
When Carbon Fixes the Bottleneck vs Hardware Limits
Carbon reduces reflection overhead and integrates Harmony natively, cutting plugin CPU overhead by 15–25%. However, if a plugin performs synchronous SQLite/JSON writes or scans 400k entities on the main thread, dedicated physical CPU cores remain mandatory.
Measured Thresholds & Configuration
| Metric (300 Pop / 40 Plugins) | Oxide / uMod | Carbon Framework |
|---|---|---|
| Hook Dispatch Method | Dynamic Reflection | Pre-compiled Harmony IL |
| C# Runtime Heap Churn | 2.35 GB Baseline | 1.45 GB Baseline |
| Avg Main-Thread Tax | 7.5–12.0 ms/tick | 4.2–7.1 ms/tick |
| Plugin Compatibility | 99% Legacy uMod | 95%+ uMod + Native Modules |