Add delta time to set framerate