aerys/minko — pull request #185 by mindigmarton (2014-10-12 15:26:37+00:00)
Title: Changed sdl canvas to use the surplus time of the current frame instead of the previous one when waiting

The current implementation uses the duration of the previous frame to calculate the surplus time to wait after the current frame. Is this intentional? Shouldn't the surplus time be calculated from the current frame's duration?

This causes weird behavior when vsync is off with _frameDuration alternating between 17ms and 0ms in each frame.

Also removed the manual _framerate cap so it reports the actual framerate (in case the desired framerate is not attainable). Is there any reason for manually setting it?