Deep performance optimization targeting severe frame drops when launching the game through Steam. Removed hundreds of runtime debug logs, significantly reducing main thread LogStringToConsole overhead.
This update cleaned up high-frequency log output in 40 core script files, covering the following systems:
First Batch (31 files)
Player System: State transitions, attack input, respawn process, energy management
Enemy AI System: State machines, ghost enemy behaviors, tracking logic
Combat System: Damage calculation, target validation, respawn protection
Save System: Auto-save, data loading, save system bridge
UI System: Boss health bars, game over screens
Lighting System: Light area detection, player exposure tracking
Item System: Key pickup
Second Batch (9 files)
Shadow Teleport System: Teleport validation, energy checks, target detection (1-3 logs reduced per attempt)
Scene Transition System: Portal triggers, scene loading/unloading, camera binding (5-7 logs reduced per transition)
Hostage Interaction System: Key drops, dialogue triggers
Savable Flag System: Scene state loading
Reduced Main Thread Load: Removed console write operations from per-frame/high-frequency paths
Scene Transition Optimization: 5-7 fewer log entries per scene transition
Improved Combat Smoothness: Attacks, hits, and state changes no longer generate excessive logs
Teleport System Optimization: Drastically reduced logging overhead when using Shadow Teleport skill
Respawn Process Optimization: Significantly fewer logs during player death/respawn
All Error and Warning level logs are retained; only informational logs were removed
No impact on game logic or functionality - pure performance optimization
Focused on optimizing high-frequency call paths like Update, FixedUpdate, and state machine transitions