aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index f044c66..99dd8ba 100644
--- a/config.def.h
+++ b/config.def.h
@@ -59,6 +59,12 @@ static const bool ANTI_ALIAS = true;
*/
static const bool ALPHA_LAYER = false;
+/* cache size for imlib2, in bytes. For backwards compatibility reasons, the
+ * size is kept at 4MiB. For most users, it is advised to pick a value close to
+ * or above 128MiB for better image (re)loading performance.
+ */
+static const int CACHE_SIZE = 4 * 1024 * 1024; /* 4MiB */
+
#endif
#ifdef _THUMBS_CONFIG