docs/src/integration/embedded_linux/draw_sdl.rst
.. _sdl_draw_unit:
Introduction
The SDL Draw Unit provides a hardware-accelerated rendering backend for LVGL that leverages SDL2's texture system. It uses software rendering to create SDL textures which are then cached and efficiently blended together by the GPU to compose the final UI. This approach combines the flexibility of software rendering with the performance benefits of hardware-accelerated texture blending.
The SDL Draw Unit excels in scenarios with:
Prerequisites
SDL Driver <sdl_driver> for installation instructions)LV_USE_SDL 1)Configuration
.. code-block:: c
#define LV_USE_SDL 1
#define LV_USE_DRAW_SDL 1
#define LV_USE_DRAW_SW 1
The SDL Draw Unit automatically integrates with the SDL display driver when both are enabled.