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
Slowdown (or little freeze) during the animation #2
Comments
Hi Patrick, Unfortunately I have no idea why this might happen. The animated gif example with this library is just a proof of concept to test the display. I suspect there must be some memory read event that occurs with a large .gif that might cause this. ESP / FreeRTOS stuff I guess? |
That's also what I think. A memory stack that saturates, or something like that. I'll do other tests, and if I find something I'll come back to tell you. |
Hi FrenchLab47, did you ever figure out the cause of the pause? |
Hi mrfaptastic, No, sorry, but I have not found anything new to mitigate, or cancel this defect. I will, in a few times, inform you of my progress on this project. |
Hi FrenchLab - I'm not really a programmer either so I understand (Code, cross-fingers, compile, fail, fix, repeat type of coder) :-)
I might have something you want here. I have modified a version of MD_Parola. This library was originally built for single color 8x8 pixel blocks that could be 'chained' together to make a matrix text display (typically join 8 or so of these together - so 64 wide x 8 pixel high) https://www.youtube.com/watch?v=X8fuDIhxNH0 What I have done is modify this library to make it think it's connected to four separate chains of these, but it is actually displaying to four 64x8 pixel rows on a single RGB panel (such as this DMA library supports). Text can then be animated in various ways, but the big restriction is that each line is 8 pixels high. This might be of use, if so I'll try get it working reliably and create a git repository. |
Hi mrfaptastic, I also used MD_Parola with MAX7219 modules, and indeed, the text animations are very pretty. But that's all for the moment, for the future, I would like to isolate the pixels of each character to make other effects. |
The Issue is the SPIFFS filesystem gets sluggish with seeks on larger files. Marc Merlin has done some work on this in GitHub that can easily be ported to this library (mostly its a matter of adding another ifdef in the animated gif_config.h file and removing (commenting out) some of the ifdef's for smartmatrix in Gifdecoder_lmpl.h https://github.com/marcmerlin/AnimatedGIFs I maybe see if he wants to patch his code to be compatible with this lib, its a 5 min job +- |
Hello csloz. Thanks |
Hello all, I'm coming back here to confirm that animated Gifs work well, without slowing down, when they are stored in a FAT partition. The new version of ESP32 ARDUINO offers FAT formatting options for flash memory (select ESP32 Dev module). But I did not find a simple way to upload DATA files into the FAT partition. I only managed to create a .img file (with some 8.3 files, and no folder) Finally the only solution that worked for me is the following (in three steps) 1 - To begin, I load a sketch of FTP server (ESP32FtpServer) on my ESP32 (ARDUINO IDE with FAT default formatting). After that, my files are readable in the FAT partition :) It remains an important problem: I need to reload the 2 sketches every time I modify a Data file (html, css or js). Looking forward to find a simpler upload solution ... Thanks for your help (and google translate) |
Follow instructions for working esp idf toolchain here - https://docs.espressif.com/projects/esp-idf/en/latest/get-started/ Alternately clone Marks repo and do same - http://marc.merlins.org/perso/arduino/post_2019-03-30_Using-FatFS-FFat-on-ESP32-Flash-With-Arduino.html Let me know if you need more help. I've uploaded my (work in progress) here using his newer gif libraries - https://github.com/csloz/pixelated/ |
Thank you for your links and your ideas. Thanks |
Getting a bit offtopic here I think, as this issue is solved (or at least not mrfaptastic's code) Maybe you can try this as a solution for you: In Windows 10 you can install a ubuntu subsystem. Once installed, there is a compiled version of the mkfatfs tool for ubuntu in here - https://github.com/marcmerlin/esp32_fatfsimage That can be run inside the ubuntu subsystem in windows 10 to create the filesystem if you can't compile otherwise. Hope that helps! |
Closing as not related to this library. |
FYI, updated the AnimatedGIF example based on yet another 'AnimatedGIF' library which is super fast and doesn't suffer from these stuttering issues. |
…ions/setup-python-4 Bump actions/setup-python from 2 to 4
Hello,
I come back to you to ask if you have noticed a slowdown problem during the running of the animated gifs. I first asked the author of the AnimatedGIFs library, I specified all the details that I observed, but it does not use too much esp32.
If you have a moment, I suggest you read directly what I wrote here :
pixelmatix/AnimatedGIFs#24
It's not a serious or urgent problem, it's just to know if you have an idea :-)
Best regards.
Patrick BESSE.
The text was updated successfully, but these errors were encountered: