forked from AuroraMiddleware/gtk
gl: Interleave cache aging
Every few frames, we do extra work for the cache aging. Arrange for the glyph and icon caches to not cause extra work on the same frame, to smooth things out.
This commit is contained in:
parent
60d63bbada
commit
88649b6aae
@ -341,7 +341,7 @@ gsk_gl_glyph_cache_begin_frame (GskGLGlyphCache *self,
|
||||
GSK_NOTE(GLYPH_CACHE, if (dropped > 0) g_message ("Dropped %d glyphs", dropped));
|
||||
}
|
||||
|
||||
if (self->timestamp % MAX_FRAME_AGE == 0)
|
||||
if (self->timestamp % MAX_FRAME_AGE == 30)
|
||||
{
|
||||
g_hash_table_iter_init (&iter, self->hash_table);
|
||||
while (g_hash_table_iter_next (&iter, (gpointer *)&key, (gpointer *)&value))
|
||||
|
Loading…
Reference in New Issue
Block a user