Original Post
The problem I'm having in my 2D game is that the movement is choppy when there's a time duration that's longer than average. I do the basic things such as start my timer before rendering and stop it and get the duration of the frames so I can use that to move the sprites. I've logged examples of unusually long durations while moving upward. // regular Duration: 0.000331 player1 velocity x: 0.000000 palyer1 velocity y: 8.000000 Time Based Duration x: 0.000000 Time Based Duration y: 0.264615 // here's one Duration: 0.001678 player1 velocity x: 0.000000 palyer1 velocity y: 8.000000 Time Based Duration x: 0.000000 Time Based Duration y: 1.342740 // and as you can see, this y value makes my sprite movement very choppy, making it very fast for that frame //regular Duration: 0.000406 player1 velocity x: 0.000000 palyer1 velocity y: 8.000000 Time Based Duration x: 0.000000 Time Based Duration y: 0.324958 Is there a way I can get smoother movement? Thanks in advance.