I’m using a fixed timestep in my rendering loop to interpolate the render positions and maintain a steady framerate of 60fps and update interval of 30tps.
I have a test animation that moves a single image across the screen in a linear path, checking for a minimum timestep on each update.
The odd thing is, the animation is smooth on a majority of the times I launch the program, but sometimes it begins to stutter (i.e. the image “shakes” while moving or jumps ahead/behind in its position a little bit).
What I don’t understand, is that the frame-rate monitor has the frame rate and update rate staying steady even while the image is stuttering during the animation.
What could be causing this? And why is it so inconsistent between application instances?
If you need any code snippets, let me know.
Thanks in advance for your input!