Skip to content

feat: Rebuild the dynamic batching example as a kinetic sculpture - #9901

Merged
mvaligursky merged 1 commit into
mainfrom
mv-batching-dynamic-example
Nov 1, 2026
Merged

mvaligursky merged 1 commit into
mainfrom
mv-batching-dynamic-example

Conversation

@mvaligursky

Copy link
Copy Markdown
Contributor

Rebuilds the dynamic batching example as a kinetic sculpture, and fixes replacing the meshes of a render component in a batch group.

Changes:

  • Hundreds of metal shapes float above a dark floor, moving every frame in waves, ripples, spirals and other patterns, rendered by a dynamic batch group in a few draw calls
  • Controls to turn batching off and compare the number of draw calls, and to change the pattern, the shapes and the speed
  • Fix: a render component in a batch group now rebuilds its batch group when it replaces its mesh instances, by changing its type, setting its mesh instances or loading another render asset. A dynamic batch threw on the destroyed mesh instances, and a static batch kept rendering the old meshes.

Examples:

  • graphics/batching-dynamic: rebuilt, with new thumbnails

Hundreds of metal shapes move in waves, rendered in a few draw calls by a dynamic batch group, with a toggle to compare the draw calls without batching. A render component that replaces its mesh instances now rebuilds its batch group, which a dynamic batch failed on.
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Build size report

This PR changes the size of the minified bundles.

Bundle Minified Gzip Brotli
playcanvas.min.js 2790.1 KB (+118 B, +0.00%) 723.6 KB (+7 B, +0.00%) 561.0 KB (−137 B, −0.02%)
playcanvas.min.mjs 2786.8 KB (+118 B, +0.00%) 722.9 KB (+8 B, +0.00%) 560.5 KB (−413 B, −0.07%)

@mvaligursky
mvaligursky merged commit 2dd053a into main Nov 1, 2026
11 checks passed
@mvaligursky
mvaligursky deleted the mv-batching-dynamic-example branch November 1, 2026 21:04

This branch was successfully deployed

2 active deployments
Preview – engine — 5a1ffe50 Deployed Nov 1, 2026 by vercel[bot]
Preview – engine-api-docs — 5a1ffe50 Deployed Nov 1, 2026 by vercel[bot]
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