feat(benchmark): increase the weights for rotation and scaling(zoom) … (#4620)

This commit is contained in:
Gabriel Wang 2023-10-03 08:44:43 +01:00 committed by GitHub
parent 0b66468f2f
commit 8969415220
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 9 deletions

View File

@ -41,5 +41,8 @@ In the first section of the table, "Slow but common cases", those cases are disp
Below this in the "All cases section" all the results are shown. The < 10 FPS results are shown with red, the >= 10 but < 20 FPS values are displayed with orange.
![LVGL benchmark result summary](screenshot2.png)
**NOTE**: Compared to the past, the use of rotation and zoom(scaling) in GUI applications has become increasingly common. Therefore, starting from LVGL9, we have assigned a higher priority to zoom(scaling) and rotation operations.

View File

@ -591,14 +591,14 @@ static scene_dsc_t scenes[] = {
{.name = "Image ARGB recolor", .weight = 20, .create_cb = img_argb_recolor_cb},
{.name = "Image indexed recolor", .weight = 3, .create_cb = img_index_recolor_cb},
{.name = "Image RGB rotate", .weight = 3, .create_cb = img_rgb_rot_cb},
{.name = "Image RGB rotate anti aliased", .weight = 3, .create_cb = img_rgb_rot_aa_cb},
{.name = "Image ARGB rotate", .weight = 5, .create_cb = img_argb_rot_cb},
{.name = "Image ARGB rotate anti aliased", .weight = 5, .create_cb = img_argb_rot_aa_cb},
{.name = "Image RGB zoom", .weight = 3, .create_cb = img_rgb_zoom_cb},
{.name = "Image RGB zoom anti aliased", .weight = 3, .create_cb = img_rgb_zoom_aa_cb},
{.name = "Image ARGB zoom", .weight = 5, .create_cb = img_argb_zoom_cb},
{.name = "Image ARGB zoom anti aliased", .weight = 5, .create_cb = img_argb_zoom_aa_cb},
{.name = "Image RGB rotate", .weight = 5, .create_cb = img_rgb_rot_cb},
{.name = "Image RGB rotate anti aliased", .weight = 10, .create_cb = img_rgb_rot_aa_cb},
{.name = "Image ARGB rotate", .weight = 10, .create_cb = img_argb_rot_cb},
{.name = "Image ARGB rotate anti aliased", .weight = 15, .create_cb = img_argb_rot_aa_cb},
{.name = "Image RGB zoom", .weight = 5, .create_cb = img_rgb_zoom_cb},
{.name = "Image RGB zoom anti aliased", .weight = 10, .create_cb = img_rgb_zoom_aa_cb},
{.name = "Image ARGB zoom", .weight = 10, .create_cb = img_argb_zoom_cb},
{.name = "Image ARGB zoom anti aliased", .weight = 15, .create_cb = img_argb_zoom_aa_cb},
{.name = "Text small", .weight = 20, .create_cb = txt_small_cb},
{.name = "Text medium", .weight = 30, .create_cb = txt_medium_cb},

View File

@ -43,7 +43,12 @@ typedef enum {
/**********************
* GLOBAL PROTOTYPES
**********************/
/** Run all test scenes in the LVGL benchmark with a given mode
*/
void lv_demo_benchmark(lv_demo_benchmark_mode_t mode);
/** Run a specific test scene in the LVGL benchmark with a given mode
*/
void lv_demo_benchmark_run_scene(lv_demo_benchmark_mode_t mode, uint16_t scene_no);
/**********************