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:
parent
a0af3d1856
commit
7e965a45d1
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue