A foundational rewrite of the game’s core architecture to prioritize performance and scalability.
High-Performance Rendering
- Hardware-Accelerated Transforms: Machines and the world viewport now move using direct DOM manipulation and translate3d, bypassing the React reconciliation bottleneck for 60 FPS motion.
- GPU Layer Promotion: Implemented 'will-change' properties across the world layer to ensure the browser handles movement via the GPU compositor thread.
- Ref-Based Physics: Separated game logic from the render cycle using mutable Refs, ensuring the 'brain' of the farm runs at full speed regardless of UI complexity.
Growth & Logic Optimization
- Active Growth Queue: Optimized the field system to ignore static tiles; the engine now only processes 'dirty' or growing squares to save up to 85% CPU overhead.
- Tab-Focus Synchronization: Added a catch-up system that calculates missed growth time when the browser tab returns from an idle/background state.
“¸ Precision Sync & Bug Fixes
- Unified Frame Sync: The camera, machine labels (ZZZ, AUTO), and tutorial tooltips are now 'locked' to the physics engine, eliminating all micro-stutter and visual 'jitter'.
- State Integrity: Fixed machine 'teleportation' during Shed reactivation and resolved a logic stall in the Regular Task generation system.