PDQ_GFX as better replacement for Adafruit_GFX?

Working libraries, libraries being ported and related hardware
Post Reply
ipsilondev
Posts: 10
Joined: Sun Aug 13, 2017 7:57 pm

PDQ_GFX as better replacement for Adafruit_GFX?

Post by ipsilondev » Tue Aug 15, 2017 12:52 pm

Hi everyone !

i'am working with the blue pill stm32 in the multimedia area, trying to push it's limits as much as i can in the graphic aspect. I'm doing some tech demo's using the Adafruit_GFX but looking on the internet for something better, i found this post: http://www.mrt-prodz.com/blog/view/2015 ... rduino-uno . this guy was using arduino, but mentions this library PDQ_GFX: https://github.com/XarkLabs/PDQ_GFX_Libs saying that is 3.5x to 12x faster than the adaffruit implementation. from what i could see, the biggest change is that is using FastPin form FastLED for the SPI communication.

Anyone tried it or has been ported by change to stm32? If now, how feasible could be and could really offer a better performance?

Thanks :)

victor_pv
Posts: 1747
Joined: Mon Apr 27, 2015 12:12 pm

Re: PDQ_GFX as better replacement for Adafruit_GFX?

Post by victor_pv » Wed Aug 16, 2017 2:00 am

ipsilondev wrote:
Tue Aug 15, 2017 12:52 pm
Hi everyone !

i'am working with the blue pill stm32 in the multimedia area, trying to push it's limits as much as i can in the graphic aspect. I'm doing some tech demo's using the Adafruit_GFX but looking on the internet for something better, i found this post: http://www.mrt-prodz.com/blog/view/2015 ... rduino-uno . this guy was using arduino, but mentions this library PDQ_GFX: https://github.com/XarkLabs/PDQ_GFX_Libs saying that is 3.5x to 12x faster than the adaffruit implementation. from what i could see, the biggest change is that is using FastPin form FastLED for the SPI communication.

Anyone tried it or has been ported by change to stm32? If now, how feasible could be and could really offer a better performance?

Thanks :)
Depending what display you are using the GFX library with, we have drivers that are optimized for the STM32, and use DMA, fast pin access, etc.
For the ILI9341 the driver is in the repo. For the ILI9163 I have a driver I ported, not all the speed optimizations, but a bunch, and should be linked in some thread.

It would probably help to describe better what's your display setup, and what kind of operation you are trying to speed up.

Another thing that helps with the STM32 is, in case of large DMA transfers, to not block. Currently not many libraries take advantage of that, probably only the led driver Roger wrote, but depending on your experience you can write your code around DMA transfers or modify existing libraries to take advantage or it.

ipsilondev
Posts: 10
Joined: Sun Aug 13, 2017 7:57 pm

Re: PDQ_GFX as better replacement for Adafruit_GFX?

Post by ipsilondev » Wed Aug 16, 2017 8:44 pm

Thanks for the explanation, very useful to know where are the bottlenecks and how they can improved.

I will do another post with my recent test's and problems i'm having with it :D

Post Reply