Skip to content

Memory hungry? #1

@JorgosCoenen

Description

@JorgosCoenen

Noticed that the library hogs memory when using the BMP-conversion feature. Each screen update added about 1-2% of memory usage until the application would crash.

I added these two lines just before the return in Show_bmp() in miniGUI.c (line 685), which seems to be a big improvement from my initial tests. I also added a call to the IT8951_Cancel() function from IT8951.c in my application, but this doesn't appear to have a big effect.

free(bmp_dst_buf);
free(bmp_src_buf);

Only tested on 9.7" display with RaspberryPi Zero.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions