From aeabe3c40eded0d0eec892c93efc531a48d9a5dd Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 16 Oct 2019 17:13:20 -0400 Subject: [PATCH] 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;