Fix delay for framerate limit.