summaryrefslogtreecommitdiff
path: root/src/sna/sna_driver.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-11-04 23:30:09 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-11-04 23:34:46 +0000
commit676cb4e38dc381b2ef4fb092b66db80687aa5013 (patch)
tree18d53413c7f917fbc2fd9451a5837a20d0fe256b /src/sna/sna_driver.c
parent8052c3904a1ac0308846ac13534c4c76bb96d5dd (diff)
sna: Run the deferred flush at vrefresh
This helps to reduce the perceived jerkiness of the redraw. Reported-by: Clemens Eisserer <linuxhippy@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42413 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_driver.c')
-rw-r--r--src/sna/sna_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index cacee4bf..8711934a 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -504,8 +504,8 @@ static Bool sna_pre_init(ScrnInfoPtr scrn, int flags)
if (xf86ReturnOptValBool(sna->Options, OPTION_TILING_FB, FALSE))
sna->tiling &= ~SNA_TILING_FB;
- /* Default fail-safe value of 25 Hz */
- sna->flush_interval = 40 * 1000 * 1000;
+ /* Default fail-safe value of 75 Hz */
+ sna->vblank_interval = 1000 * 1000 * 1000 / 75;
sna->flags = 0;
if (!xf86ReturnOptValBool(sna->Options, OPTION_THROTTLE, TRUE))