Skip to content

perf: keep large-map navigation responsive and stable - #25

Merged
prayujt merged 3 commits into
mainfrom
perf/map-rendering-at-scale
Aug 26, 2026
Merged

perf: keep large-map navigation responsive and stable#25
prayujt merged 3 commits into
mainfrom
perf/map-rendering-at-scale

Conversation

@prayujt

@prayujt prayujt commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • batch generated terrain, structures, and remembered-fog sprites through a shared texture atlas
  • update tile lookup and rendered tiles incrementally instead of rebuilding the visible scene for every streamed state change
  • prune inactive tile containers after camera movement settles and skip hidden overlay animation work
  • avoid no-op entity-store updates and cache minimap terrain during camera movement
  • keep confirmed movement routes visible while stale, delayed, or route-less streamed order updates reconcile
  • show move previews in blue, confirmed moves in green, and attacks in red before and after confirmation
  • preserve the complete isometric map outline at low zoom
  • group population trend, tax revenue, and food balance at the top of city management
  • preserve existing terrain art, fog opacity, camera controls, interactions, calculations, and game rules

Verification

  • npx prettier --check src/lib/components/MiniMap.svelte src/lib/game/sprites.ts src/routes/game/+layout.svelte src/routes/game/+page.svelte
  • npx eslint src/lib/components/MiniMap.svelte src/lib/game/sprites.ts src/routes/game/+layout.svelte src/routes/game/+page.svelte
  • npm run check
  • npm run build

Note

The repository-wide npm run lint remains blocked by existing Prettier violations in 23 files outside this change; targeted formatting and ESLint checks pass for every changed file.

@prayujt prayujt changed the title perf: keep large explored maps responsive perf: keep large-map navigation responsive and stable Aug 26, 2026
@prayujt
prayujt merged commit 9971efa into main Aug 26, 2026
1 of 2 checks passed
@prayujt
prayujt deleted the perf/map-rendering-at-scale branch August 26, 2026 01:48
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.

1 participant