Skip to content

Repo performance boost#440

Draft
amilich wants to merge 1 commit intomainfrom
cursor/repo-performance-boost-a11b
Draft

Repo performance boost#440
amilich wants to merge 1 commit intomainfrom
cursor/repo-performance-boost-a11b

Conversation

@amilich
Copy link
Copy Markdown
Owner

@amilich amilich commented Feb 17, 2026

Implement multiple performance optimizations to significantly speed up game simulation and rendering.


Open in Cursor Open in Web

- Cache calculateServiceCoverage when service buildings unchanged (skips O(n²)
  recalc every sim tick - only recalc on place/bulldoze)
- Merge syncFromRef into vehicle render loop - eliminate redundant rAF loop
- Rate-limit findRailroadCrossings to 250ms (rail structure unchanged during sim)
- React.memo on CanvasIsometricGrid to skip re-renders when props unchanged
- Turbopack for dev server (~10x faster HMR)
- Strip console.log in production builds

Co-authored-by: Andrew Milich <milichab@gmail.com>
@cursor
Copy link
Copy Markdown

cursor bot commented Feb 17, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@assert-app
Copy link
Copy Markdown

assert-app bot commented Feb 17, 2026

Your pull request is now ready for review with Assert.

Open Review →


Stop waiting for your code to break. Ship with confidence using Assert.

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Feb 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
isometric-city Ready Ready Preview, Comment Feb 17, 2026 9:21pm

Request Review

Copy link
Copy Markdown

@xkonjin xkonjin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick review pass:

  • Main risk area here is input validation, path handling, and malformed payload behavior.
  • I didn’t see targeted regression coverage in the diff; please add or point CI at a focused test for the changed path in next.config.js, package.json, CanvasIsometricGrid.tsx (+1 more).
  • Before merge, I’d smoke-test the behavior touched by next.config.js, package.json, CanvasIsometricGrid.tsx (+1 more) with malformed input / retry / rollback cases, since that’s where this class of change usually breaks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants