Re: [SDL] Delta Timing Question
Posted: Wed Dec 22, 2010 5:46 pm
GyroVorbis wrote:I still don't think you get it. If you remove the framecap less time will elapse between each frame, so it'll take more frames to hit 5 seconds--It will STILL take 5 seconds. It should ALWAYS take 5 seconds. That's the point of delta time. Whether it be 1fps or 9999999 fps, when the deltaTime sums to 5 seconds, 5 seconds has gone by. XDxiphirx wrote:I'll try removing the frame cap and see if it still gets to 5 instantly...
Does your detaTime not work on the PSP or PC? The PSP might not actually have implemented a way of getting ticks in milliseconds, so the standard dictates to just return current time+1 (which would imply that only 1 ms has gone by), but that number is LESS than 1/60th of a second, so 5 seconds should take LONGER than 5 seconds to accumulate if this were the case...
Ooohh, ok I get it now
And I'm having problems on the PSP. The engine I use has a built in function to grab the delta, so I'm trusting the author on it... It returns values like 0.02 if I remember correctly.