Yo @Deltakosh or @sebavan … I got a funny timing thing happening in the playground between platform versions…
I have a javascript and typescript playgrounds that are the same code, But for some reason they turn at different rates… Like one of them is spinning fast, but the both have the same get delta time calculation.
It seems to be an issue between js and ts, as the class is not initialized and is applied additionally. (If you run them simultaneously, the boxes running after them seem to run at twice the speed.)
There seems to be a difference when discarding or initializing pg in js and pg in ts. Is it related?
(speed is maintained correctly in multiple executions of ts + ts, js + js)
What is weird is that I’m computing the REAL delta using Date.now() (just to make sure) and it seems that one cube is turning two times faster while the figures (deltaTime, etc) are exctly the same. I’m computing the real speed in Degrees/Second, and on both sides it’s about 80°/s :
[EDIT] : It’s not exactly random in fact. Like @roland said, it seems that JS turns 2 times faster only when opened just after TS version. But, opening another JS after, is ok then. So you can end up with 2 JS versions running at differnent speed (GIF above), the one opened just after TS is 2 times faster
Yo @roland , @RaananW and @Deltakosh … can you please test the playgrounds above again. You may have to try a few times. But I took a couple snapshots of the DOM console. No BABYLON.Toolkit stuff loaded at all. I made videos of both WITH and WITHOUT using GetAnimationRatio… It still rotates at different speeds