[gtk] gl: Add debug spew to texture atlas



commit aeabe3c40eded0d0eec892c93efc531a48d9a5dd
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Oct 16 17:13:20 2019 -0400

    gl: Add debug spew to texture atlas

 gsk/gl/gskgltextureatlas.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/gsk/gl/gskgltextureatlas.c b/gsk/gl/gskgltextureatlas.c
index cd382a80ae..b974f42fbc 100644
--- a/gsk/gl/gskgltextureatlas.c
+++ b/gsk/gl/gskgltextureatlas.c
@@ -100,7 +100,12 @@ gsk_gl_texture_atlases_begin_frame (GskGLTextureAtlases *self,
        }
     }
 
-  GSK_NOTE(GLYPH_CACHE, if (removed->len > 0) g_message ("%d atlases left", self->atlases->len));
+  GSK_NOTE(GLYPH_CACHE, {
+    static guint timestamp;
+    if (timestamp++ % 60 == 0)
+      g_message ("%d atlases", self->atlases->len);
+  });
+
 
 #if 0
   {
@@ -162,6 +167,8 @@ gsk_gl_texture_atlases_pack (GskGLTextureAtlases *self,
 
       /* Pack it onto that one, which surely has enough space... */
       gsk_gl_texture_atlas_pack (atlas, width, height, &x, &y);
+
+      GSK_NOTE(GLYPH_CACHE, g_message ("adding new atlas"));
     }
 
   *atlas_out = atlas;


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