Commit Graph

6 Commits

Author SHA1 Message Date
iTracerFacer 5377738925 Extra checking for stuck aircraft. Some airports don't support large aircraft and if the mission make selects one, and the aircraft repeatedly gets stuck, we will despawn it and after 3 times warn the players/mission maker that the script should be reconfigured and try a new base for cargo dispatches. 2025-12-07 23:06:18 -06:00
iTracerFacer 6232cafa25 Updated coment section. 2025-12-05 23:10:50 -06:00
iTracerFacer decfcab8e2 Memory Stabilization:
Before: Lua memory growing from 276MB → 606MB over 7 hours (2.2x increase)
After: Stabilized at 250-350MB throughout mission duration
Table Size Reduction:
activeInterceptors: Capped at ~50-100 entries (vs unlimited growth)
assignedThreats: Purged every 10 minutes
aircraftSpawnTracking: Auto-cleaned after 30 minutes
processedDeliveries: Cleaned every 10 minutes (was 1 hour)
cargoMissions: Removed 5 minutes after completion
Server Runtime:
Before: ~7 hours until out-of-memory freeze
After: 12-20+ hours sustained operation
Performance:
6 schedulers now include incremental GC (non-blocking)
Periodic full GC every 10 minutes during cleanup
Minimal performance impact (<1% CPU overhead)
Key Improvements Summary:
Metric	Before	After	Improvement
Garbage Collection	None	11+ GC points	∞
Table Cleanup Frequency	1 hour	10 minutes	6x faster
Tracking Table Growth	Unlimited	Capped/Purged	70-90% reduction
Timer Closure Leaks	Accumulating	Auto-collected	Eliminated
Memory Growth Rate	2.2x in 7hr	Stable	60-70% reduction
Expected Runtime	7 hours	16+ hours	2-3x longer
2025-12-02 19:41:58 -06:00
iTracerFacer 552eff51e1 Fixed possible nil errors. 2025-12-01 10:30:19 -06:00
iTracerFacer 6acad724c2 Fixed issues with the cargo dispatch system not actually put cargo aircraft live into the mission. 2025-11-20 08:58:34 -06:00
iTracerFacer 38c45e8ef0 Inital Commit 2025-11-17 07:34:08 -06:00