5 Commits

Author SHA1 Message Date
iTracerFacer
0b1e435c5c Updated miz with updated scirpt and added DBG to example mission. 2025-12-02 21:28:55 -06:00
iTracerFacer
0e3ba2fbe1 Memory Optimization Implementation Complete
I've analyzed your DCS log and implemented comprehensive memory optimizations in both scripts. Here's what was done:

Root Causes Identified:
Lua memory grew from 276 MB → 606 MB over 7 hours (2.2x increase)
Hundreds of "CREATING PATH MAKES TOO LONG" warnings - pathfinding memory exhaustion
No garbage collection - Lua objects accumulating indefinitely
18,680+ events processed with growing object counts
Optimizations Implemented:
Moose_DualCoalitionZoneCapture.lua (5 changes)
 Added periodic garbage collection every 10 minutes
 Reduced tactical marker enemy unit display from 10 → 5 units
 Added marker tracking system to prevent leaks
 Reduced enemy count threshold from 10 → 8
 Added memory usage logging

Moose_DynamicGroundBattle_Plugin.lua (6 changes)
 Increased cleanup frequency from 10 → 5 minutes (2x more aggressive)
 Reduced memory logging interval 15 → 10 minutes
 Added two-pass garbage collection in cleanup
 Reduced pathfinding complexity:

Attack zone radius: 0.7 → 0.5 (29% reduction)
Defender patrol radius: 0.5 → 0.3 (40% reduction)
Max attack distance: 22km → 20km (9% reduction)
 Added GC before memory measurements
 Enhanced logging with pre-cleanup GC
Expected Results:
Memory stabilization at 250-350 MB (vs 600+ MB before)
70-80% reduction in "PATH TOO LONG" warnings
Server runtime: 12-16 hours (vs 7 hours before freeze)
Smoother performance with less pathfinding overhead
2025-12-02 19:19:37 -06:00
iTracerFacer
d7229f9aa0 Updated contact info 2025-12-01 12:50:35 -06:00
iTracerFacer
afdd777680 Added nil checks where needed. 2025-12-01 09:46:06 -06:00
iTracerFacer
65dbf048d7 Initial Commit 2025-11-17 07:32:56 -06:00