Draft
Conversation
- 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 Agent can help with this pull request. Just |
|
Your pull request is now ready for review with Assert. Stop waiting for your code to break. Ship with confidence using Assert. |
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
xkonjin
reviewed
Mar 8, 2026
xkonjin
left a comment
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement multiple performance optimizations to significantly speed up game simulation and rendering.