2024-09-19 04:48 AM
Hello
I'm working on a 320x240 SPI LCD using partial frame buffer strategy
The number of blocks is configured to 2 and the block size is configured to 19200 bytes.
The problem is that flushFrameBuffer draws only 240x20 pixels at a time, however I would expect it to draw 240x40 at a time (240x40x2(16-bits) = 19200 bytes)
Does anybody know if that's a TouchGFX limitation, or it can be changed ?
2024-10-02 04:36 AM
Hello @MSecr.1,
Yes, breaking the height into block of 20px is currently a limitation of TouchGFX, and cannot be changed by the users.
Best regards,
2024-10-03 04:47 AM
Hi,
Thanks for the clarification. I note that this has been raised earlier - maybe it should be documented - I also wasted some time on this.
Can you advise what is the optimal maximal allocation for partial buffers?
Is it 20 x bytes_per_pixel * display_width?
What is the optimal number of buffers?
Dan
2024-10-03 06:59 AM
I apologize for the inconvenience. We will definitely add this point to the documentation of Partial Framebuffer.
The size of the block is as what you have stated, but about the number of buffers, it depends on your use case. 2 is the minimum, and we usually use 3 in the TouchGFX Board Setups that are available in TouchGFX, and if you have enough RAM then maybe 4 would be better.
I hope this helps you!