From 7e965a45d1bb3d39ddb9c62dde536d0d66e92537 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 13 Jun 2015 09:30:05 +0100 Subject: [PATCH] sna/dri2: Extend keepalives out to 100ms Keep the swap cache around for 100ms, so only if the app drops below 10fps do we start having to recreate buffers on the fly. Signed-off-by: Chris Wilson --- src/sna/sna_dri2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c index 553b1112..6cb346f4 100644 --- a/src/sna/sna_dri2.c +++ b/src/sna/sna_dri2.c @@ -144,7 +144,7 @@ struct sna_dri2_event { #endif #if USE_ASYNC_SWAP -#define KEEPALIVE 4 /* wait ~50ms before discarding swap caches */ +#define KEEPALIVE 8 /* wait ~100ms before discarding swap caches */ #define APPLY_DAMAGE 0 #else #define USE_ASYNC_SWAP 0