delay dependent on framerate