Performance Metrics and Optional Buffer Sync
New Features
- Some drawing algorithms like the
AnimatedGIF
decoder library depends on the frame buffer being preserved from one frame to the next. However, this is not true in double-buffering. (#11) Setting the new flagcopyAfterSwap
totrue
will copy frame buffers so they stay in sync from one frame to the next. This flag isfalse
by default to avoid unnecessary copy when not needed. ESP_8_BIT_GFX
class now tracks how much time is spent inwaitForFrame()
which can be used as an approximation for idle time. This is in turn an approximation for performance, as faster code will leave more time between frames idle. In order to keep this tracking code lightweight, there are caveats on how these numbers should be interpreted. See comment block inESP_8_BIT_GFX.h
(initial version also copied in #4 ) for details.
New Example
- Example named
AnimatedGIF
illustrates how to use this color composite video out library with theAnimatedGIF
library by Larry Bank / bitbank2. This is a light modification of example projectESP32_LEDMatrix_I2S
from that library. - The animated art is Cat and Galactic Squid by Emily Velasco (CC BY-SA 4.0)
Bug Fixes
- Fixed PAL output error where the blanking lines were not blank. With this fix for #1, PAL support is now fully on par with NTSC.