Version: 0.2.2 - performance focused update
Performance:
- Batch processing: Frozen entities (20/tick), spotlights (5/tick), lamps (10/tick)
- Throttled spotlight targeting to run every 30 ticks (2x/sec) instead of every tick
- Spatial partitioning: Lamps cached by surface for faster range checks
- Entity caching: Spotlights tracked via build/destroy events, eliminates find_entities_filtered calls
- O(1) list operations: Swap-and-pop removal instead of table.remove for lamps/spotlights
- Event handler optimization: Pre-defined lookup tables for UV turrets and enemy types, early exits
- Loop optimization: Single-pass for finding closest unfrozen enemy (combined filtering + distance calc)
- Local variable caching for positions and frequently accessed globals
Bugfixes:
- Fixed inhibitor lamps not firing freeze events after game load
- Fixed Factorio 2.0 compatibility (global -> storage migration)
- Added sticker reapplication on load for frozen/thawing entities