I'm switching from code running on an LCD to code running on a TFT using the Bodmer TFT library (ESP32 CYD, but that's probably not important).
Let's say I'm displaying this using display.printf() on the LCD:
"temperature: 25.6 degrees C"
"humidity: 45%"
"speed: 14.5 kts"
I would like to update the numbers fairly frequently but I don't want to clear/redraw because I want to avoid flicker. Is the best way to create a single viewport, write/draw everything (including text) in the viewport, and redraw that? Or would it be better to create individual viewports for each number (which means figuring out exactly where they will be positioned) and redraw each number's viewport every time I refresh?
If the second way is better, it seems that the library supports one viewport at a time, so I need to recreate each viewport each cycle, correct? (As opposed to creating three and then setting the tft viewport to each one of the three sequentially).