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

Improve animation performance⚡️ #210

Merged
merged 2 commits into from
Mar 24, 2023
Merged

Conversation

uezo
Copy link
Owner

@uezo uezo commented Mar 24, 2023

THIS IS A DESTRUCTIVE CHANGE

Use main loop instead of async/await.
This refactoring also brings us improved stability in successive animation chain that includes start, stop and cancel complexly.

The way to play animation is changed in this version.

  • v0.5.x: Set name of state on the base layer
response.AddAnimation("AnimationName");
  • from v0.6: Set parameter key and value for the animator controller
response.AddAnimation("BaseParam", 6);

*THIS IS A DESTRUCTIVE CHANGE*

Use main loop instead of async/await.
This refactoring also brings us improved stability in successive animation chain that includes start, stop and cancel complexly.

The way to play animation is changed in this version.

- v0.5.x: Set name of state on the base layer
```csharp
response.AddAnimation("AnimationName");
```

- from v0.6: Set parameter key and value for the animator controller
```csharp
response.AddAnimation("BaseParam", 6);
```

You can use existing animator controller for ChatdollKit. Or, Setup AnimatorController by ModelController command menu.
@uezo uezo merged commit e9ac1db into master Mar 24, 2023
@uezo uezo deleted the animation-performance-improvement branch March 24, 2023 04:47
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