Skip to content

Instance render all spheres#807

Merged
Micheal Parks (micheal-parks) merged 1 commit into
mainfrom
instanced-spheres
Jul 6, 2026
Merged

Instance render all spheres#807
Micheal Parks (micheal-parks) merged 1 commit into
mainfrom
instanced-spheres

Conversation

@micheal-parks

Copy link
Copy Markdown
Member

Overview

We know the deal by now. In one of Brandon's more complex examples, this halfs the number of draw calls from 300 -> 150. Big win in some scenes.

Screenshot 2026-07-02 at 13 52 50

@changeset-bot

changeset-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ae40efd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@viamrobotics/motion-tools Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@micheal-parks Micheal Parks (micheal-parks) changed the title Instance render spheres Instance render all spheres Jul 2, 2026
const colorUtil = new Color()

/** Same resolution order as `Boxes.svelte` / `Frame.svelte`. */
const resolveColor = (entity: Entity): Color => {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Since the shape of all the instanced rendering components is similar, I'll be merging this stuff together into shared helpers in the next PR

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-07-06 15:08 UTC

@micheal-parks Micheal Parks (micheal-parks) merged commit 5294217 into main Jul 6, 2026
11 checks passed
@micheal-parks Micheal Parks (micheal-parks) deleted the instanced-spheres branch July 6, 2026 15:08
@claude claude Bot mentioned this pull request Jul 6, 2026
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