Coder Social home page Coder Social logo

Comments (6)

embeddedt avatar embeddedt commented on May 27, 2024 1

We have also seen strangely high amounts of memory being used by lodepng in the MicroPython simulator so this seems to correlate with that. It would be great if a newer version of lodepng solved the issue.

(cc @amirgon)

from lv_lib_png.

kisvegabor avatar kisvegabor commented on May 27, 2024

Thanks for the report!

In fact, I found that lv_lib_png is using "20180611" release. lodepng is now "20201017"

Would you be interested in sending a PR with the latest version?
I think the most important change was added in this commit: 66b6642

from lv_lib_png.

alsaleem00 avatar alsaleem00 commented on May 27, 2024

I found that lodepng consumes (194KB, including the 37KB file size and 64KB image buffer). The file was only 128x128 pixels.
That was a lot of memory for ESP32. I used pngle to decode png which consumes less,
However, pngle failed when i allocated memory from SPIRAM, while lodepng did not.

The new lodepng changed the code so that user can use his own memory allocation.

Let me check to evaluate the amount of work needed to use new lodepng in lv_lib_png. I will follow the same approach you used for the old one.

from lv_lib_png.

alsaleem00 avatar alsaleem00 commented on May 27, 2024

Here is a log of memory allocation activities by lodepng (attached), both 2018 and 2020 versions.
There is some reduction in memory usage but still high.

lodepng_mem_2018.txt
lodepng_mem_2020.txt

from lv_lib_png.

alsaleem00 avatar alsaleem00 commented on May 27, 2024

lv_lib_png is now using lodepng newest release. So, this thread should be closed..

from lv_lib_png.

kisvegabor avatar kisvegabor commented on May 27, 2024

Thank you!

from lv_lib_png.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.