How To Increase FPS

Pixel Format

Using RGBA/RGB images can get great display effects, but if the FPS is low, then you can use RGB565 format image resources, sacrifice a little effect to get a FPS boost.

Hardware Acceleration

Use hardware acceleration to render images instead of software acceleration whenever possible. Different chip models may have different GPU, please refer to the guidance document in the SDK for details.

Data Transmission Speed

Data transmission speed also affects the drawing speed of HoneyGUI, so please ensure the bandwidth and frequency of memory (FLASH and PSRAM).

UI Design

Reducing complexity in the UI, as well as the number and size of images in a single interface, can increase the frame rate. Make sure that every pixel of the image data that needs to be loaded is useful.

Image Compression

HoneyGUI supports image compression, and some chips have built-in hardware decompression modules. Using the hardware decompression module is very fast, but using software decompression takes some time. Using compressed images can reduce the size of the original image resources, allowing you to place more resources in userrdata and reducing the time needed to read from flash.

Font

Custom Binary Files

  • Use multiples of 8 for font size whenever possible.

  • When the file contains several hundred characters, indexMethod should be set to 0 when creating the font file.

Standard TTF Files

  • Using TTF files to display text is significantly slower than using BIN.

  • TTF files can be clipped through an open source solution.