Performance questions #2595
Replies: 2 comments
-
And a related follow up question: I noticed that the TFT displays of today are rather rudimentary from an API standpoint. Even something as simple as clearing the screen requires the MCU to spit out a large matrix of pixels of the correct color. I would think that the TFT display would have a command for clearing the screen so that it can be done immediately and with much less impact on the MCU and SPI bus. When we look at video cards for computers there is a very rich API that has been very successful at delivering high performance displays. Are there displays for microcontrollers that have a richer on-display API that we can take advantage of? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I need to get super-tight on performance of my main loop and that has lead me to consider what I am doing for TFT output. Currently, TFT output takes a very long time and most of the calls are blocking. This has a negative impact on the performance of my primary loop, which is a concern for me. The first thing I am considering is how I can move to using a parallel interface. Does this library support this, and are there particular TFTs that are high performance and recommended? The second thing I am thinking about is how to offload the TFT to a background task so that my primary loop can run without lag. I haven't found any examples or mentions about how to do this. Are there issues with running in the background? I assume that I would need to ensure that all the communication to the screen would be through one task, or get creative with semaphors to ensure that there aren't two different threads trying to communicate to the screen at the same time. Does this apply to anything talking on the SPI bus, or just the device? Are there any other thoughts that are important for those that are focused on high performance and responsive projects?
Beta Was this translation helpful? Give feedback.
All reactions