[gtk/glyphcache-fiddling: 11/11] gl: Increate the cache check frequency



commit e9ba7eda470589a17686c59f694795e9f6b475d6
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Oct 12 12:34:56 2019 -0400

    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 <epoxy/gl.h>
 
-#define MAX_FRAME_AGE (5 * 60)
+#define MAX_FRAME_AGE 60
 
 typedef struct
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]