Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fabd5338 authored by Naomi Luis's avatar Naomi Luis Committed by Steve Kondik
Browse files

frameworks/native: Increase EGL blob cache size limits

Increase the size of the EGL Blob Cache to 2MB and the key size to 4K.
This helps improve the performance of OpenGL apps, especially Open GLESv1.1
apps whose shaders are generated on the fly.

CRs-fixed: 393074

Change-Id: Ic3772a9722b63351c940d40794cf54073a8b5eed
parent d931bb2f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -30,11 +30,11 @@
#endif

#ifndef MAX_EGL_CACHE_SIZE
#define MAX_EGL_CACHE_SIZE (64 * 1024);
#define MAX_EGL_CACHE_SIZE (2096 * 1024);
#endif

// Cache size limits.
static const size_t maxKeySize = 1024;
static const size_t maxKeySize = 4096;
static const size_t maxValueSize = MAX_EGL_CACHE_ENTRY_SIZE;
static const size_t maxTotalSize = MAX_EGL_CACHE_SIZE;