Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image insertion, flickering and blinking #1

Open
tobozo opened this issue Nov 1, 2019 · 4 comments
Open

Image insertion, flickering and blinking #1

tobozo opened this issue Nov 1, 2019 · 4 comments

Comments

@tobozo
Copy link

tobozo commented Nov 1, 2019

hey 😄

I got your shoutout on twitter all right and I suggest you try this code

@Mystereon
Copy link
Owner

Mystereon commented Nov 1, 2019 via email

@Mystereon
Copy link
Owner

Mystereon commented Nov 1, 2019 via email

@tobozo
Copy link
Author

tobozo commented Nov 1, 2019

Actually it feels faster when compiled with the M5Stack-Core-ESP32 board or any ESP32 board with psram disabled,

The cause is that TFT_eSprite will allocate the sprite memory to the psram when available, even when it's not necessary.

Since the psram uses the SPI bus, that's a slowdown indeed.

One speed improvement is to disable psram, your project does not need much memory since it's already got plenty free (~180K);

Another improvement would be by using DMA transfer but that's out of my league (see these examples).

@Mystereon
Copy link
Owner

Mystereon commented Nov 2, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants