Back to browse

Data Synchronization Rules

agent · Cursorcodingother

Rules for keeping region grid data synchronized between a JavaScript UI and a WASM simulation efficiently.

Agent definition

- Implement Data Synchronization: - Create an efficient system for keeping the region grid data synchronized between the JavaScript UI and the WASM simulation. This might involve: a. Implementing periodic updates at set intervals. b. Creating an event-driven synchronization system that updates when changes occur. c. Optimizing large data transfers to maintain smooth performance, possibly using typed arrays or other efficient data structures. d. Implementing a queuing system for updates to prevent overwhelming the simulation with rapid changes.

Setup

Place in .cursor/rules/ (or as .cursorrules) at the root of your project.

Imported from the original source by sanjeed5, licensed CC0-1.0.

Are you the author and want this removed or changed? Request removal