기본적으로 30fps 를 출력하는 것 같아서 속도를 더 올릴 수 없나 찾아보는중
| sdkconfig # # HAL Settings # CONFIG_LV_DEF_REFR_PERIOD=33 CONFIG_LV_DPI_DEF=130 # end of HAL Settings |
| lv_conf_internal.h /*==================== HAL SETTINGS *====================*/ /** Default display refresh, input device read and animation step period. */ #ifndef LV_DEF_REFR_PERIOD #ifdef CONFIG_LV_DEF_REFR_PERIOD #define LV_DEF_REFR_PERIOD CONFIG_LV_DEF_REFR_PERIOD #else #define LV_DEF_REFR_PERIOD 33 /**< [ms] */ #endif #endif |
| lv_demo_benchmark.h /** * Run all benchmark scenes. * * On the summary end screen the values shall be interpreted according to the following: * - CPU usage: * - If `LV_SYSMON_GET_IDLE` is not modified it's measured based on the time spent in * `lv_timer_handler`. * - If an (RT)OS is used `LV_SYSMON_GET_IDLE` can be changed to a custom function * which returns the idle percentage of idle task. * * - FPS: LVGL attempted to render this many times in a second. It's limited based on `LV_DEF_REFR_PERIOD` * * - Render time: LVGL spent this much time with rendering only. It's not aware of task yielding, * but simply the time difference between the start and end of the rendering is measured * * - Flush time: It's the sum of * - the time spent in the `flush_cb` and * - the time spent with waiting for flush ready. */ void lv_demo_benchmark(void); |
| lv_display.c lv_display_t * lv_display_create(int32_t hor_res, int32_t ver_res) { /*Create a refresh timer*/ disp->refr_timer = lv_timer_create(lv_display_refr_timer, LV_DEF_REFR_PERIOD, disp); LV_ASSERT_MALLOC(disp->refr_timer); if(disp->refr_timer == NULL) { lv_free(disp); return NULL; } } |
다만 perf test 쪽 헤더를 쓰게 되면 16msec로 60fps로 상향되는 듯.
| lv_test_perf_conf.h /** * @file lv_conf.h * Configuration file for v9.3.0-dev */ /* * Copy this file as `lv_conf.h` * 1. simply next to `lvgl` folder * 2. or to any other place and * - define `LV_CONF_INCLUDE_SIMPLE`; * - add the path as an include path. */ /* clang-format off */ #if 1 /* Set this to "1" to enable content */ #ifndef LV_CONF_H #define LV_CONF_H #define LV_BUILD_TEST_PERF 1 #define LV_USE_TEST 1 /* If you need to include anything here, do it inside the `__ASSEMBLY__` guard */ #if 0 && defined(__ASSEMBLY__) #include "my_include.h" #endif /*==================== HAL SETTINGS *====================*/ /** Default display refresh, input device read and animation step period. */ #define LV_DEF_REFR_PERIOD 16 /**< [ms] */ /** Default Dots Per Inch. Used to initialize default sizes such as widgets sized, style paddings. * (Not so important, you can adjust it to modify default sizes and spaces.) */ #define LV_DPI_DEF 130 /**< [px/inch] */ |
'프로그램 사용 > lvgl' 카테고리의 다른 글
| esp32 lvgl 관련 링크들 (0) | 2026.02.18 |
|---|---|
| lvgl 기본 폰트 크기 바꾸기 (0) | 2026.02.13 |
| lvgl textarea (0) | 2026.02.11 |
| squareline studio export (0) | 2026.02.10 |
| squareline studio 보드설정 (0) | 2026.02.10 |
