lv_drivers icon indicating copy to clipboard operation
lv_drivers copied to clipboard

feature(wayland): add double buffering

Open WallaceIT opened this issue 2 years ago • 5 comments

Add double buffering to Wayland driver: one buffer is updated while another one is being displayed.

This doubles the memory requirement, but lowers the possibility to encounter a busy buffer when LVGL core is ready to draw.

Signed-off-by: Francesco Valla [email protected]

WallaceIT avatar Nov 12 '22 15:11 WallaceIT

Please note that the MR is marked as draft because it is still, in fact, a draft: some of the logic for a proper double buffering is still lacking. Moreover, the entire work will probably be converted to a direct_mode implementation for better performance (no data copy).

WallaceIT avatar Nov 12 '22 22:11 WallaceIT

Added carry-over of previous buffer damages, proper double-buffering logic should be in place now.

WallaceIT avatar Nov 13 '22 21:11 WallaceIT

And the problem https://github.com/lvgl/lv_drivers/pull/242 still exist. (I haven't found the reason so far.)

you can use weston --use-pixman to test on you machine. Thanks @WallaceIT

HR1025 avatar Nov 15 '22 01:11 HR1025

Recently, I was studying the implementation of weston-terminal. It need some time. I think we can find a good solution from it. The code is located in weston/clients/terminal.c in weston

HR1025 avatar Nov 15 '22 01:11 HR1025

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 20 '23 03:04 stale[bot]