Scrolling Sprites causing flicker over another sprite #2027
Replies: 2 comments
-
Hi, I'm new here and was scanning for help for my own issue but I think I can help here. A you've noted the Sprites can be forced to overwrite so that's key. If you've enough RAM, push each of your layers to a screen-sized sprite and the push that to the TFT once done. No flickering. I'm doing this on ESP32S3 without issues. I've just started to handle the biggest scrolling sprite on second core by itself to speed up frame rate. |
Beta Was this translation helpful? Give feedback.
-
Not sure how I missed the original post... in the case of the OP question I think setting a viewPort will solve this. the screen is uply updated in the view port zone and thus if the pushed sprite is bigger than the set viewPort it will be clipped accordingly. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, first of all I am so appreciated for this library, it is very useful. What I am trying to achieve is having 3 sprites in one display as:
Banner and footer content is static but listbox items are dynamic and content is not fitting into sprite, so I need to scroll it. User will have navigation button access and list box items will be scrolled by user with buttons.
What I realize I need to create big enough sprite to fit all the list items first then I should scroll it. Problem is that when I create big enough sprite for listbox, it is going over my footer sprite. So I am re-writing my footer in every iteration but this also causing the flicker. I tried scroll rect but I could not figured it out. Is there any one who can achieve this without flicker, please help me. You can find my simplified code below that doing scrolling automatically to see result without buttons, thanks.
Hardware: wt32 sc01
Beta Was this translation helpful? Give feedback.
All reactions