# Benchmark demo
## Overview
The benchmark demo tests the performance in various cases.
For example rectangle, border, shadow, text, image blending, image transformation, bleding modes, etc.
All tests are repeated with 50% opacity.
The size an position of the objects during testing are set with a pseudo random number to make the benchmark repeatable.
On to top of the screen the title of the current test step, and the result of the previous step is displayed.
## Run the benchmark
- In `lv_ex_conf.h` set `LV_USE_DEMO_BENCHMARK 1`
- After `lv_init()` and initializing the drivers call `lv_demo_benchmark()`
## Interpret the result
The FPS is measured like this:
- load the next step
- in the display driver's `monitor_cb` accumulate the time-to-render and the number of cycles
- measure for 1 second
- calculate `FPS = time_sum / render_cnt`
Note that it can result in very high FPS results for simple cases.
E.g. if some simple rectangles are drawn in 5 ms, the benchmark will tell it's 200 FPS.
So it ignores `LV_DISP_REFR_PERIOD` which tells LVGL how often it should refresh the screen.
In other words, the benchmark shows the FPS from the pure rendering time.
By default, only the changed areas are refreshed. It means if only a few pixels are changed in 1 ms the benchmark will show 1000 FPS. To measure the performance with full screen refresh uncomment `lv_obj_invalidate(lv_scr_act())` in `monitor_cb()` in `lv_demo_benchmark.c`.
![LVGL benchmark running](https://github.com/lvgl/lv_examples/blob/master/src/lv_demo_benchmark/screenshot1.png?raw=true)
## Result summary
In the end, a table is created to display measured FPS values.
On top of the summary screen, the "Weighted FPS" value is shown.
In this, the result of the more common cases are taken into account with a higher weight.
"Opa. speed" shows the speed of the measurements with opacity compared to full opacity.
E.g. "Opa. speed = 90%" means that rendering with opacity is 10% slower.
In the first section of the table, "Slow but common cases", those cases are displayed which are considered common but were slower than 20 FPS.
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](https://github.com/lvgl/lv_examples/blob/master/src/lv_demo_benchmark/screenshot2.png?raw=true)
没有合适的资源?快使用搜索试试~ 我知道了~
LittleVGL(LVGL)移植到STM32F429IG 野火STM32F429至尊开发板 包含官方演示程序
共2747个文件
html:1054个
c:578个
js:400个
4星 · 超过85%的资源 需积分: 50 91 下载量 47 浏览量
2020-09-13
01:17:04
上传
评论 8
收藏 52.72MB ZIP 举报
温馨提示
LittleVGL (LVGL) STM32F429IGTx [使用野火STM32F429开发板] LVGL版本:v7.5 使用STD库 MDK-ARM Keil5集成开发环境 实现各小控件的演示 移植触摸以及LTDC驱动 800*480的RGB显示屏 已开启DMA2D 打印机例程因Flash内存不足无法演示!!!
资源推荐
资源详情
资源评论
收起资源包目录
LittleVGL(LVGL)移植到STM32F429IG 野火STM32F429至尊开发板 包含官方演示程序 (2747个子文件)
STM32F429_LVGL_DEMO.uvguix.14252 179KB
libarm_cortexM4l_math.a 3.09MB
libarm_cortexM4lf_math.a 3.05MB
cstart_thumb2.asm 4KB
lv_demo_printer_img_scan_example.c 9.15MB
arm_linear_interp_data.c 4.12MB
lv_demo_printer_img_btn_bg_1.c 1.93MB
lv_demo_printer_img_btn_bg_4.c 1.93MB
lv_demo_printer_img_btn_bg_2.c 1.93MB
lv_demo_printer_img_btn_bg_3.c 1.93MB
lv_demo_printer_img_ready.c 1.72MB
arm_common_tables.c 868KB
arm_dct4_init_f32.c 786KB
lv_demo_printer_img_printer2.c 785KB
img_cogwheel_argb.c 706KB
lv_font_simsun_16_cjk.c 623KB
lv_font_montserrat_48.c 574KB
lv_font_montserrat_46.c 541KB
lv_demo_printer_img_phone.c 539KB
img_cogwheel_chroma_keyed.c 530KB
img_cogwheel_rgb.c 530KB
lv_font_montserrat_44.c 496KB
lv_font_montserrat_42.c 458KB
lv_font_montserrat_40.c 419KB
arm_dct4_init_q31.c 417KB
lv_demo_printer_img_cloud.c 388KB
lv_font_montserrat_38.c 379KB
arm_rfft_init_f32.c 362KB
imgbtn_green.c 353KB
imgbtn_blue.c 353KB
lv_font_montserrat_36.c 344KB
lv_font_montserrat_34.c 314KB
lv_demo_printer_img_internet.c 295KB
lv_demo_printer_img_print.c 295KB
lv_demo_printer_img_setup.c 286KB
lv_font_dejavu_16_persian_hebrew.c 285KB
lv_font_montserrat_32.c 276KB
arm_dct4_init_q15.c 272KB
lv_demo_printer_img_usb.c 268KB
lv_font_montserrat_30.c 254KB
lv_font_montserrat_28.c 226KB
lv_demo_printer_img_scan.c 221KB
lv_demo_printer_img_copy.c 217KB
arm_rfft_init_q31.c 215KB
lv_demo_printer_img_mobile.c 213KB
lv_font_montserrat_26.c 201KB
lv_font_montserrat_24.c 176KB
lv_font_montserrat_22.c 157KB
lv_obj.c 148KB
lv_font_montserrat_28_compressed.c 141KB
arm_rfft_init_q15.c 141KB
lv_font_montserrat_20.c 135KB
stm32f4xx_rcc.c 134KB
lv_demo_printer_img_no_internet.c 126KB
stm32f4xx_tim.c 122KB
lv_font_montserrat_18.c 119KB
lv_demo_printer_icon_wifi.c 116KB
bsp_lcd.c 101KB
stm32f4xx_rtc.c 101KB
lv_font_montserrat_16.c 100KB
lv_demo_printer_icon_pc.c 97KB
lv_demo_printer_icon_eco.c 92KB
lv_demo_printer_img_wave.c 91KB
lv_demo_printer_icon_tel.c 88KB
lv_font_montserrat_14.c 87KB
stm32f4xx_dfsdm.c 85KB
lv_font_montserrat_12_subpx.c 74KB
lv_font_montserrat_12.c 74KB
stm32f4xx_adc.c 67KB
stm32f4xx_can.c 65KB
img_hand.c 64KB
lv_textarea.c 63KB
stm32f4xx_flash.c 62KB
stm32f4xx_fmc.c 61KB
lv_demo_printer_icon_bright.c 61KB
stm32f4xx_dsi.c 61KB
lv_theme_material.c 60KB
system_stm32f4xx.c 60KB
lv_indev.c 59KB
stm32f4xx_cryp_aes.c 57KB
stm32f4xx_fmpi2c.c 57KB
stm32f4xx_usart.c 57KB
arm_cfft_radix4_q15.c 56KB
lv_draw_rect.c 55KB
lv_chart.c 54KB
stm32f4xx_i2c.c 53KB
lv_label.c 53KB
stm32f4xx_dma.c 52KB
stm32f4xx_spi.c 52KB
lv_page.c 51KB
lv_btnmatrix.c 49KB
stm32f4xx_sai.c 48KB
lv_demo_printer.c 48KB
fonts.c 46KB
lv_dropdown.c 46KB
stm32f4xx_fsmc.c 45KB
lv_draw_mask.c 45KB
arm_conv_partial_fast_q15.c 44KB
arm_fft_bin_data.c 43KB
arm_fft_bin_data.c 43KB
共 2747 条
- 1
- 2
- 3
- 4
- 5
- 6
- 28
资源评论
- Terry.Z_10092021-06-24野火挑战者F429 V2编译下载可以显示但是不能触摸
- 创客小白2021-08-25我的还有报错提示找不到"stm32f429xx.h"
Evlers
- 粉丝: 3
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功