AI Update Optimization
Issue: CPU spikes during high-density enemy waves.
Root cause: Expensive per-frame AI evaluation and update execution across active entities.
Fix: Optimized tick scheduling and reduced unnecessary update frequency for non-critical AI systems.
Result: Reduced peak gameplay script time from ~6–9 ms to ~2–4 ms during combat-heavy scenarios.
Gameplay Architecture Scalability
Issue: Gameplay iteration slowed down as systems became more interconnected.
Root cause: Growing dependency complexity between combat, progression, and reward systems.
Fix: Refactored gameplay logic into more isolated modular systems with clearer ownership boundaries.
Result: Reduced average feature integration time from ~4–6 hours to ~1–2 hours for medium gameplay updates.
Combat Performance Stabilization
Issue: Frame pacing instability during intensive wave combat on low-end devices.
Root cause: CPU-heavy combat calculations and uneven update distribution.
Fix: Optimized combat update flow and reduced expensive runtime operations inside hot gameplay loops.
Result: Stabilized frame pacing and improved worst-case FPS from ~35–45 FPS to stable ~55–60 FPS under heavy combat load.