change AI sampling rate based on framelimit