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 <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-06-13 09:30:05 +01:00
parent a0af3d1856
commit 7e965a45d1
1 changed files with 1 additions and 1 deletions

View File

@ -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