summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-04-18 17:28:10 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-04-18 17:35:43 +0100
commitb41aac6caa182819bcd39891402a7be1d664316d (patch)
tree3f2d7e8b7d5b03c7f5fb20874ec8f2056747752d
parent821f9bc57c316d2429dff16aa478a36b695a1b29 (diff)
evas render - flush, dont clear unref/clean arrays on render done
we build these arrays to hold tjhings to clean up when done ... but if one frame happens ot have a lot - the allocation stays huge as we only clean not flush, so flush to keep memory down. @optimize
-rw-r--r--src/lib/evas/canvas/evas_render.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/evas/canvas/evas_render.c b/src/lib/evas/canvas/evas_render.c
index 27cf2c52d6..4a44c5e6ea 100644
--- a/src/lib/evas/canvas/evas_render.c
+++ b/src/lib/evas/canvas/evas_render.c
@@ -3902,17 +3902,17 @@ evas_render_wakeup(Evas *eo_e)
3902 3902
3903 /* unref queues */ 3903 /* unref queues */
3904 eina_array_foreach(&evas->scie_unref_queue, _drop_scie_ref, NULL); 3904 eina_array_foreach(&evas->scie_unref_queue, _drop_scie_ref, NULL);
3905 eina_array_clean(&evas->scie_unref_queue); 3905 eina_array_flush(&evas->scie_unref_queue);
3906 evas_common_rgba_image_scalecache_prune(); 3906 evas_common_rgba_image_scalecache_prune();
3907 3907
3908 eina_array_foreach(&evas->image_unref_queue, _drop_image_cache_ref, NULL); 3908 eina_array_foreach(&evas->image_unref_queue, _drop_image_cache_ref, NULL);
3909 eina_array_clean(&evas->image_unref_queue); 3909 eina_array_flush(&evas->image_unref_queue);
3910 3910
3911 eina_array_foreach(&evas->glyph_unref_queue, _drop_glyph_ref, NULL); 3911 eina_array_foreach(&evas->glyph_unref_queue, _drop_glyph_ref, NULL);
3912 eina_array_clean(&evas->glyph_unref_queue); 3912 eina_array_flush(&evas->glyph_unref_queue);
3913 3913
3914 eina_array_foreach(&evas->texts_unref_queue, _drop_texts_ref, NULL); 3914 eina_array_foreach(&evas->texts_unref_queue, _drop_texts_ref, NULL);
3915 eina_array_clean(&evas->texts_unref_queue); 3915 eina_array_flush(&evas->texts_unref_queue);
3916 3916
3917 SLKL(evas->post_render.lock); 3917 SLKL(evas->post_render.lock);
3918 jobs_il = EINA_INLIST_GET(evas->post_render.jobs); 3918 jobs_il = EINA_INLIST_GET(evas->post_render.jobs);