[gtk/wip/chergert/glproto: 183/493] use single frame caching for now
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 183/493] use single frame caching for now
- Date: Fri, 19 Feb 2021 02:25:09 +0000 (UTC)
commit c0e45194f436c54a5f1addd69ed79383e695f6a2
Author: Christian Hergert <chergert redhat com>
Date: Wed Jan 13 11:18:54 2021 -0800
use single frame caching for now
gsk/next/gskgldriver.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/next/gskgldriver.c b/gsk/next/gskgldriver.c
index a8386f5aa3..14367dc551 100644
--- a/gsk/next/gskgldriver.c
+++ b/gsk/next/gskgldriver.c
@@ -38,7 +38,7 @@
#include "gskglshadowlibraryprivate.h"
#include "gskgltexturepoolprivate.h"
-#define TEXTURES_CACHED_FOR_N_FRAMES 5
+#define TEXTURES_CACHED_FOR_N_FRAMES 1
G_DEFINE_TYPE (GskNextDriver, gsk_next_driver, G_TYPE_OBJECT)
@@ -121,7 +121,7 @@ gsk_next_driver_collect_unused_textures (GskNextDriver *self,
if (t->user || t->permanent)
continue;
- if (t->last_used_in_frame <= watermark)
+ if (t->last_used_in_frame < watermark)
{
remove_texture_key_for_id (self, t->texture_id);
g_hash_table_iter_remove (&iter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]