Sync skeletal animation with sound

I have a skeletal animation and a sound with same length(60s). I want to to play them in sync. If the framerate of the engine drops the animation should skip some frames to keep the pace.

Found:
https://doc.babylonjs.com/api/interfaces/babylon.engineoptions#deterministiclockstep
https://doc.babylonjs.com/babylon101/animations#deterministic-lockstep

Is there anything else I have to work with? Or is deterministic lockstep of the engine what I’m looking for?

Here’s my attempt to isolate the issue, but here it still seems to work:
https://playground.babylonjs.com/#5775FJ#17
(In my project the animation is played slower, it takes almost 120% of the time to complete)

Thanks a lot in advance!
And sorry for the somewhat diffuse question.

Hey!

by default the animation is setup in the expected mode :slight_smile: eg. it will skip frames to keep the pace

1 Like