Skip to content

perf: skip idle 16×16 chunks in World::step - #4

Merged
chowjiaming merged 1 commit into
mainfrom
feat/chunks
Aug 13, 2026
Merged

chowjiaming merged 1 commit into
mainfrom
feat/chunks

Conversation

@chowjiaming

@chowjiaming chowjiaming commented Aug 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

Test plan

  • just verify (fmt, clippy, 14 unit tests, wasm-pack)
  • just bench (ignored 960×600 step-rate test)
  • One grain of sand on a large empty canvas still falls to the floor
  • A busy pile still simulates; FPS counter at 320×200 stays ~60 in release

Paint and motion wake a chunk and its neighbors so a sparse
grain still falls correctly. Native 960×600 sparse step rate
went from ~1k to ~16k steps/s; dense scenes are unchanged.
@cursor

cursor Bot commented Aug 13, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@chowjiaming
chowjiaming merged commit d2fbb60 into main Aug 13, 2026
2 checks passed
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