path: root/src/modules/evas/engines/drm/evas_engine.h
diff options
authorDerek Foreman <>2018-07-10 16:52:46 -0400
committerChris Michael <>2018-07-10 16:52:46 -0400
commitf7fc06bf8648887aefd40a150f2ab4d42782de83 (patch)
tree30ad5a17258045299b48d8eb4f50e513c1c650ac /src/modules/evas/engines/drm/evas_engine.h
parent5d30f2b0b380be6be4d742009eb31685a98518e4 (diff)
evas_drm: Allocate buffers on demand
Summary: Instead of allocating a fixed number of buffers immediately, allocate buffers if needed to render to. Normally we only need 2 buffers, but we've been allocating 3 to handle worse case behaviour. As T7099 shows, this is not always enough. We now cap at a max of 10. For the normal case where we always use 2 this results in a slight memory reduction (1 buffer) and a slight renering load reduction because we pick the oldest buffer to render into. A future patch will trim the buffer queue if it's been too large for a long time. fix T7099 Depends on D6563 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #committers, zmike Tags: #efl Maniphest Tasks: T7099 Differential Revision:
Diffstat (limited to 'src/modules/evas/engines/drm/evas_engine.h')
1 files changed, 0 insertions, 1 deletions
diff --git a/src/modules/evas/engines/drm/evas_engine.h b/src/modules/evas/engines/drm/evas_engine.h
index ff5c10dbf5..c276b71092 100644
--- a/src/modules/evas/engines/drm/evas_engine.h
+++ b/src/modules/evas/engines/drm/evas_engine.h
@@ -62,7 +62,6 @@ struct _Outbuf
62 62
63 struct 63 struct
64 { 64 {
65 int num;
66 Eina_List *fb_list; 65 Eina_List *fb_list;
67 Outbuf_Fb *draw; 66 Outbuf_Fb *draw;
68 Ecore_Drm2_Output *output; 67 Ecore_Drm2_Output *output;