Frame rate dynamically adapted until optimum is reached