[Bug 77436] KDE Konsole very slow scrolling with TearFree and QT graphics system native

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jun 25 01:27:20 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=77436

--- Comment #121 from Chris Wilson <chris at chris-wilson.co.uk> ---
Something that's been bothering me is that I think we end up not calling the
BlockHandler often enough. That's called after a client uses up his time slice
or has no more commands to execute.


diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index e0995ce..4eaf1d5 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -719,6 +719,9 @@ sna_block_handler(BLOCKHANDLER_ARGS_DECL)

        sna->BlockHandler(BLOCKHANDLER_ARGS);

+       ErrorF("%s (tv=%ld.%06ld), shadow?=%d\n", __FUNCTION__,
+            *tv ? (*tv)->tv_sec : -1, *tv ? (*tv)->tv_usec : 0,
has_shadow(sna));
+
        if (*tv == NULL || ((*tv)->tv_usec | (*tv)->tv_sec) || has_shadow(sna))
                sna_accel_block_handler(sna, tv);
 }


Would give a rough indication of how often we are called, and how often we
would proceed. The complication here is that whilst TearFree is active,
continuation is done immediately after the flip.

On that front, "trace-cmd record -e drm -e i915" during the lag would be
useful. Attach the output of "trace-cmd report". (See
http://git.kernel.org/cgit/linux/kernel/git/rostedt/trace-cmd.git)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20140625/1903d5ff/attachment.html>


More information about the intel-gfx-bugs mailing list