Skip to content


Subversion checkout URL

You can clone with
Download ZIP
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
  • Loading branch information...
commit fabd53382691b986c395bd96235d829b621f5510 1 parent d931bb2
Naomi Luis authored cyanogen committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 opengl/libs/EGL/egl_cache.cpp
4 opengl/libs/EGL/egl_cache.cpp
@@ -30,11 +30,11 @@
-#define MAX_EGL_CACHE_SIZE (64 * 1024);
+#define MAX_EGL_CACHE_SIZE (2096 * 1024);
// 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;
Please sign in to comment.
Something went wrong with that request. Please try again.