Skip to content

Show with maintainBufferConsistency = false and SetPixel safety #602

Answered by Makuna
awawa-dev asked this question in Q&A
Discussion options

You must be logged in to vote

It can be safe. It depends on the Method used and the hardware used. BitBang method it will never be safe. Most hardware supported methods (ESP32 I2s and RMT, ESP8266 DMA, etc) it will be safe. AVR and ARM platforms it is not safe as they are just bitbang.

For the hardware methods:
If you never call GetPixel() then it is recommended that you pass maintainBufferConsistency = false.
Internally, this option controls a buffer copy required to keep the internal double buffering consistent. Waisted work if you never "view" the buffer.
The internal double buffering is what allows you to start updating the next "frame" while the current "frame" is being set. Further, this double buffering is requ…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@awawa-dev
Comment options

Answer selected by Makuna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants