Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: improve performance of AutoMergeBlendShape #1327

Merged
merged 3 commits into from
Nov 4, 2024

Conversation

bdunderscore
Copy link
Contributor

This pass was obtaining the blendshape buffer for each vertex, then processing those buffers.
However, in practice, most vertices share the same buffer; this pass ignored this, and redid
the same work thousands of times as a result.

This reduces processing time from ~370ms to ~22ms on my main avatar.

@bdunderscore bdunderscore marked this pull request as ready for review November 4, 2024 04:25
Copy link
Owner

@anatawa12 anatawa12 left a comment

Choose a reason for hiding this comment

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

I forgot distinct(). Thank you.

CHANGELOG-PRERELEASE.md Outdated Show resolved Hide resolved
This pass was obtaining the blendshape buffer for each vertex, then processing those buffers.
However, in practice, most vertices share the same buffer; this pass ignored this, and redid
the same work thousands of times as a result.

This reduces processing time from ~370ms to ~22ms on my main avatar.
@anatawa12
Copy link
Owner

LGTM. Thank you

@anatawa12 anatawa12 enabled auto-merge November 4, 2024 09:04
@anatawa12 anatawa12 merged commit dd45e45 into anatawa12:master Nov 4, 2024
6 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.

2 participants