Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Well this is better than I expected:

Well this is better than I expected:

Scheduled Pinned Locked Moved The Lounge
designcssasp-netcomgraphics
4 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    honey the codewitch
    wrote on last edited by
    #1

    This is awesome. I'm rendering an SVG image using my library, on a little ESP32, and also rendering TrueType text from a 120KB font file. I posted the result earlier, but I was curious how much memory it was using. To that end I created a little heap watch dog to run on the 2nd core while my parsing and rendering was taking place. It's taking less memory to render the tiger and the text than it would to load the equivalent JPG or PNG (which take at least 32KB needed for Huffman decompression)

    static size_t max_mem = 0;
    static size_t min_mem = (unsigned)-1;
    static void mem_task(void*) {
    while(true) {
    size_t mem = ESP.getFreeHeap();
    if(mem>max_mem) {
    max_mem = mem;
    }
    if(mem
    Max memory available: 302.25KB
    Max memory used: 22.93KB

    Unless I'm doing something wrong in terms of monitoring, this is very encouraging.

    Check out my IoT graphics library here:
    https://honeythecodewitch.com/gfx
    And my IoT UI/User Experience library here:
    https://honeythecodewitch.com/uix

    R 1 Reply Last reply
    0
    • H honey the codewitch

      This is awesome. I'm rendering an SVG image using my library, on a little ESP32, and also rendering TrueType text from a 120KB font file. I posted the result earlier, but I was curious how much memory it was using. To that end I created a little heap watch dog to run on the 2nd core while my parsing and rendering was taking place. It's taking less memory to render the tiger and the text than it would to load the equivalent JPG or PNG (which take at least 32KB needed for Huffman decompression)

      static size_t max_mem = 0;
      static size_t min_mem = (unsigned)-1;
      static void mem_task(void*) {
      while(true) {
      size_t mem = ESP.getFreeHeap();
      if(mem>max_mem) {
      max_mem = mem;
      }
      if(mem
      Max memory available: 302.25KB
      Max memory used: 22.93KB

      Unless I'm doing something wrong in terms of monitoring, this is very encouraging.

      Check out my IoT graphics library here:
      https://honeythecodewitch.com/gfx
      And my IoT UI/User Experience library here:
      https://honeythecodewitch.com/uix

      R Offline
      R Offline
      Ron Anders
      wrote on last edited by
      #2

      If the site goes away, I want to say you're really somthin'.

      H J 2 Replies Last reply
      0
      • R Ron Anders

        If the site goes away, I want to say you're really somthin'.

        H Offline
        H Offline
        honey the codewitch
        wrote on last edited by
        #3

        Thank you! :-O

        Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

        1 Reply Last reply
        0
        • R Ron Anders

          If the site goes away, I want to say you're really somthin'.

          J Offline
          J Offline
          jmaida
          wrote on last edited by
          #4

          I agree. Honey is a Honey.

          "A little time, a little trouble, your better day" Badfinger

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups