Better write times for a large sprite? #3311
Unanswered
104TMR
asked this question in
Q&A - Sprites
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Many thanks for your work creating the TFT_eSPI library.
I am running an ESP32-S3 N16R8 (board pic attached) with a 4.0" TFT, 480x320, ILI9488 driver, and want to run a full screen graph that updates with new data approximately twice per second, without flicker.
Creating a sprite would seem the natural device to use, and I decided to take the Graph_2 demo and modfiy it to run within a sprite, and see what screen rewrite speeds could be achieved.
The code for this follows, but I have been surprised at the apparent long screen write times (~820ms) for each trace on the graph when written as a sprite (especially compared to the very rapid write times achieved directly (ie. no sprite) to the TFT screen).
I have turned PSRAM on and off (QSPI only - the IDE doesn't seem to allow/recognise OPI), and it doesn't seem to make a difference.
Run output as follows with PSRAM turned on:
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x2b (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbe4
load:0x403cc700,len:0x2a68
entry 0x403c98d4
Total PSRAM: %d8386279
Free PSRAM: %d8386019
YES! Sprite created.
Creating graph
Sprite 1 time=819
Sprite 2 time=819
Sprite 3 time=818'
And with PSRAM turned off:
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x2b (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbe4
load:0x403cc700,len:0x2a68
entry 0x403c98d4
Total heap: %d397396
Free heap: %d367088
Total PSRAM: %d0
Free PSRAM: %d0
YES! Sprite created.
Creating graph
Sprite 1 time=817
Sprite 2 time=816
Sprite 3 time=817
Are such sprite-screen-write-times realistic, or is there something I should be doing differently?
And advice/help appreciated.
Code:
Beta Was this translation helpful? Give feedback.
All reactions