Optimizes game logic and rendering code to reduce garbage collection pressure and ensure high-frame-rate performance.
The game-perf skill provides a comprehensive set of patterns and best practices for writing high-performance, allocation-free game code. It specifically targets 'hot paths' in game development—such as update loops, physics calculations, and render cycles—where minor allocations can lead to frame stutters due to garbage collection. By identifying common anti-patterns like array spread operators or frequent object creation and providing production-ready alternatives like scratch buffers, in-place filtering, and spatial hashing, this skill helps developers maintain smooth 60+ FPS performance in complex web and desktop games.
주요 기능
01Offers object pooling strategies for frequent entity creation and destruction
02Provides zero-allocation alternatives for array filtering and mapping
031 GitHub stars
04Standardizes the use of scratch buffers and readonly signals for transient data
05Implements spatial partitioning patterns for optimized proximity queries
06Identifies GC-heavy anti-patterns in high-frequency game loops
사용 사례
01Reducing frame stuttering caused by frequent garbage collection in JavaScript engines
02Refactoring collision detection logic to use spatial hashing for better scaling
03Optimizing render and update loops for high-performance web games