diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-04 23:30:09 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-04 23:34:46 +0000 |
commit | 676cb4e38dc381b2ef4fb092b66db80687aa5013 (patch) | |
tree | 18d53413c7f917fbc2fd9451a5837a20d0fe256b /src/sna/sna_display.c | |
parent | 8052c3904a1ac0308846ac13534c4c76bb96d5dd (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_display.c')
-rw-r--r-- | src/sna/sna_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index a82ccd8e..66f96679 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -601,7 +601,7 @@ static void update_flush_interval(struct sna *sna) if (max_vrefresh == 0) max_vrefresh = 40; - sna->flush_interval = 2000 * 1000 * 1000 / max_vrefresh; + sna->vblank_interval = 1000 * 1000 * 1000 / max_vrefresh; /* Hz -> ns */ DBG(("max_vrefresh=%d, flush_interval=%d ns\n", max_vrefresh, sna->flush_interval)); } |