Autoadaptive frame rate