File tree Expand file tree Collapse file tree 2 files changed +387
-1
lines changed Expand file tree Collapse file tree 2 files changed +387
-1
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,32 @@ config SHADOW_BLUR
77
77
range 1 10
78
78
depends on DROP_SHADOW
79
79
80
+ config PIXMAP_CACHE
81
+ bool "Enable pixmap caching"
82
+ default y
83
+ help
84
+ Enable caching of pixmaps to improve performance by reusing
85
+ frequently allocated pixmaps. This reduces memory allocation
86
+ overhead at the cost of slightly increased memory usage.
87
+
88
+ config PIXMAP_CACHE_SIZE
89
+ int "Maximum number of cached pixmaps"
90
+ default 8
91
+ range 4 32
92
+ depends on PIXMAP_CACHE
93
+ help
94
+ Maximum number of pixmaps that can be stored in the cache.
95
+ Larger values may improve performance but use more memory.
96
+
97
+ config PIXMAP_CACHE_MAX_KB
98
+ int "Maximum cache size in KB"
99
+ default 64
100
+ range 16 512
101
+ depends on PIXMAP_CACHE
102
+ help
103
+ Maximum total memory size for cached pixmaps in kilobytes.
104
+ The cache will evict entries to stay within this limit.
105
+
80
106
endmenu
81
107
82
108
menu "Image Loaders"
You can’t perform that action at this time.
0 commit comments