Added timer to force each frame to the optimal frame time at minimum