From e9ba7eda470589a17686c59f694795e9f6b475d6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 12 Oct 2019 12:34:56 -0400 Subject: [PATCH] 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. --- gsk/gl/gskglglyphcache.c | 2 +- gsk/gl/gskgliconcache.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.30.2