Hi,
Years ago I used V6 and had no problems fitting a small GUI into 16KB LV_MEM_SIZE with plenty of space left over (it used about 10kb max out of the 16kb). Thought I’d try out V9 and I’m guessing I won’t be able to migrate it to V9 using the same 16KB LV_MEM_SIZE ? I tried the simulator with blank projects, and the memory for a BLANK screen project seems to have drastically jumped 700% from V6 to V9!!! And approx 225% from V7 to V9.
The commits below are from https://github.com /lvgl/lv_port_pc_visual_studio
and the only changes I made are LV_MEM_SIZE (16*1024U) and remove the demo so it can compile and just open a blank screen, no other changes.
6.1.0 - commit 06343f1
used: 1588 ( 10 %), frag: 0 %, biggest free: 14796
7.1.0 - commit 71bba10
used: 5032 ( 31 %), frag: 1 %, max used: 5072, biggest free: 11304
7.9.1 - commit bef60a1
used: 5144 ( 32 %), frag: 1 %, max used: 5160, biggest free: 11216
8.3.9 - commit 3c0a66c
used: 9056 ( 56 %), frag: 0 %, max used: 4452, biggest free: 7328
9.1.1 - commit e6c4dd2
used: 11744 ( 88 %), frag: 0 %, max used: 11744, biggest free: 1744
Few questions:
- Is this normal and approx the lowest it can get for a blank V9 project, or are there more things that could be turned off?
- I could get away with using V7, but I was really hoping to go to V9, what’s causing V9 to be double V7 for a blank screen?
- Does it have anything to do with the Windows VS simulator, will it be different on hardware or is the simulator lv_mem_monitor() 100% accurate of what LV_MEM_SIZE usage would be on the target hardware? ie are the windows drivers for mouse etc… using any of this heap memory? Or not related? My target hardware doesn’t have a mouse.
- The doco on the Introduction page for V9 states >2KB heap. Is this a typo? How come mine is using 11.7KB for a blank screen?