im trying to wrap my head around why you need to know the last loop time to calculate movement? i would think that you would just need to look at the current position and increment that x-axis and/or y-axis by .01, 1, 30 or whatever needed for each loop.
below are a few snippets of the code listed in the above link:
All the loops may not be constant in time, depending on what else the machine is doing, but you still want your sprites to look like they are moving at a constant rate.
so if i update the screen more often (i.e. shorter loop times), i want them to move less. 5 frames per second need to move further between each re-paint than 20 frames per second.
Never ascribe to malice that which can be adequately explained by stupidity.
subject: gameLoop()... why do we need to know last loop time?