feat(benchmark): make lvgl render at the highest frame rate (#3352)

* feat(benchmark): make lvgl render at the highest frame rate

* add lv_demo_benchmark_set_max_speed

* Update comments and README

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
_VIFEXTech
2022-05-24 18:36:22 +08:00
committed by GitHub
parent 029eef79c4
commit 6e3d01190f
3 changed files with 39 additions and 1 deletions

View File

@@ -34,6 +34,12 @@ void lv_demo_benchmark_run_scene(int_fast16_t scene_no);
void lv_demo_benchmark_set_finished_cb(finished_cb_t * finished_cb);
/**
* Make the benchmark work at the highest frame rate
* @param en true: highest frame rate; false: default frame rate
*/
void lv_demo_benchmark_set_max_speed(bool en);
/**********************
* MACROS
**********************/