Hey all!
I was working with a game that was working smoothly with a fixed value for position change, but as soon as I multiplied it by the deltaTime
I notice that sometimes the player movement flicks.
Digging deeper on it I realize that what is happening is that Im getting a somewhat constant value for deltaTime
of 16ish then out of sudden on the next frame it is 36, the frame after is 1, and then it got back to the normality of 16, this is causing that on the frame with 36 the player mover a lot more than when the value is 16, then it moves almost nothing when it is 1 and then it moves at the normal speed, but that sudden high then very short movement makes the flick impression, I’m not sure how would I be able to handle that, not sure either if babylon has something already built in to handle that.
Got some answers from ChatGPT btw, but wanted to check here before cause I’m pretty sure that I’m not the first one to have that issue and GPT solution wasnt exactly what I expected