Average the time over 10 frames or something?
I was trying to write an algorithm for the frame skipping after work yesterday but all I did was fill paper with numbers May just be too tired at the moment.
Quote from: Rhuan on July 18, 2017, 04:19:46 pmI was trying to write an algorithm for the frame skipping after work yesterday but all I did was fill paper with numbers May just be too tired at the moment.One idea I had was to steal time from early frames, but that doesn't help you at all in the case where all your frames are late. Plus it risks introducing undercrank, i.e. after a late frame the subsequent ones will be given a smaller timeslice and cause the game too fast, leading to jerky animations etc.So yeah, it's not a trivial problem to fix.