Too slow animation

hi ,
i have two skinned model in scene with two animation mixer, but one of them(last created model) is two slow.
what is should to do?
my sample code is here
https://drive.google.com/open?id=1mqbbs8njAX0wILjlL9MQwG-8ChV96FlT

When opening your application in Firefox, I get the following error:

SyntaxError: An invalid or illegal string was specified. physijs_worker.js:78

Can you please demonstrate the issue without physijs in a more compact demo?

This is not due to physijs_worker.

must be run on a web server.

You can see this link :
http://176.221.69.209:1037/animationmixer/

1 Like

Thanks for the link!

What do you mean with “too slow” animation? Do you say the performance is too bad?

Your demo runs at 60 FPS on my machine. Tested with Chrome and Firefox.

performance is ok. in my scene SambaDancing animation playback is slow(its not like this https://threejs.org/examples/#webgl_loader_fbx).
when i have one model in scene , playback speed is ok . but when i add the second model , second model play slow in scene.

Ah. The problem might be related to the fact that you call clock.getDelta() multiple times in animate(). The first call after requestAnimationFrame( animate ); is okay, but subsequent calls results in tiny delta values. To solve your problem, call clock.getDelta() once per tick and save the delta value in a variable:

requestAnimationFrame( animate );
const delta = clock.getDelta();

// use the delta value for your animations
3 Likes

thanks.
its ok.