# VG-Lite GPU Simulator (/debugging/vg_lite_tvg)



LVGL integrates a VG-Lite GPU simulator based on ThorVG.  Its purpose is to simplify
the debugging of VG-Lite GPU adaptation and reduce the time spent debugging and
locating problems on hardware devices.

It has been integrated into the CI automated compilation and testing process to ensure
that the VG-Lite rendering backend can be fully tested after each Pull Request (PR) is
merged into the repository.

How It Works [#how-it-works]

Using the `vg_lite.h` header file, ThorVG re-implements the VG-Lite API, generating
the same rendered images as the real VG-Lite GPU hardware.

Configuration [#configuration]

1. Enable VG-Lite rendering backend, see [VG-Lite General GPU](/integration/chip_vendors/nxp/vg_lite_gpu).
2. Enable ThorVG and turn on the configuration <ApiLink name="LV_USE_THORVG_INTERNAL" /> or <ApiLink name="LV_USE_THORVG_EXTERNAL" />.
   It is recommended to use the internal ThorVG library to ensure uniform rendering results.
3. Enable <ApiLink name="LV_USE_VG_LITE_THORVG" /> and set <ApiLink name="LV_DRAW_BUF_ALIGN" /> to 64. The rest of the options can remain default.
   Make sure <ApiLink name="LV_VG_LITE_USE_GPU_INIT" /> is enabled, because the thorvg drawing context needs to be initialized before it can be used.
