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

Optimize morph target animation creation from glb data #5140

Merged
merged 1 commit into from Mar 10, 2023

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Mar 10, 2023

This seems to about half the duration of createMorphTargetCurves, which is large part of loading animations with morph curves:

  • using single typed array allocation, and assigning range from it, instead of many allocations
  • not calling retrieveWeightName each time, but executing most of it just one time

@mvaligursky mvaligursky self-assigned this Mar 10, 2023
@mvaligursky mvaligursky added performance Relating to load times or frame rate area: animation Animation related issue labels Mar 10, 2023
@mvaligursky mvaligursky merged commit 24b2377 into main Mar 10, 2023
@mvaligursky mvaligursky deleted the mv-morph-anim-optimization branch March 10, 2023 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: animation Animation related issue performance Relating to load times or frame rate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants