From: Matthias Clasen Date: Sat, 12 Oct 2019 16:34:56 +0000 (-0400) Subject: gl: Increate the cache check frequency X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~716 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e9ba7eda470589a17686c59f694795e9f6b475d6;p=gtk4.git gl: Increate the cache check frequency Otherwise, we spread the cache over more atlases than necessary, increasing the amount of texture changes in each frame. --- diff --git a/gsk/gl/gskglglyphcache.c b/gsk/gl/gskglglyphcache.c index 33ef45279e..f6c00d3046 100644 --- a/gsk/gl/gskglglyphcache.c +++ b/gsk/gl/gskglglyphcache.c @@ -24,7 +24,7 @@ * atlas and all the items it contained. */ -#define MAX_FRAME_AGE (5 * 60) +#define MAX_FRAME_AGE (60) #define MAX_GLYPH_SIZE 128 /* Will get its own texture if bigger */ static guint glyph_cache_hash (gconstpointer v); diff --git a/gsk/gl/gskgliconcache.c b/gsk/gl/gskgliconcache.c index 31ede9bcdf..fc518b8851 100644 --- a/gsk/gl/gskgliconcache.c +++ b/gsk/gl/gskgliconcache.c @@ -5,7 +5,7 @@ #include -#define MAX_FRAME_AGE (5 * 60) +#define MAX_FRAME_AGE 60 typedef struct {