spring/spring — pull request #42 by cleanrock (2012-09-24 17:36:56+00:00)
Title: calc lastFrameTime after swap

First, this pull request is more of a basis for discussion than a real pull request.

I was looking into the jerkyness when moving the view point with the arrow keys and realized the cause is that globalRendering->lastFrameTime is used which is calculated before swap.
This is probably also the main cause of the camera transition problem although the new camera transition is probably better than only fixing lastFrameTime.

What i try to accomplish is to update lastFrameTime after the swap to make interpolation correct.
Interpolation using lastFrameTime is incorrect atm (at least when using vsync which everybody should use).

Its a hack atm (but it works):
DrawPost (new virtual method) is only called if Draw returns true.
Draw only return true if everything in Draw is executed.