Well this is better than I expected:
-
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.93KBUnless 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 -
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.93KBUnless 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/uixIf the site goes away, I want to say you're really somthin'.
-
If the site goes away, I want to say you're really somthin'.
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
-
If the site goes away, I want to say you're really somthin'.