<table><tr><td style="">romangg added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D23105">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #8C98B8;
color: #6B748C;
font-style: italic;
margin: 4px 0 12px 0;
padding: 8px 12px;
background-color: #F8F9FC;">
<div style="font-style: normal;
padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D23105#525696" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D23105#525696</a>, <a href="https://phabricator.kde.org/p/ekurzinger/" style="
border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;">@ekurzinger</a> wrote:</div>
<div style="margin: 0;
padding: 0;
border: 0;
color: rgb(107, 116, 140);"><p>Regarding the fallback to the composite timer when using the proprietary NVIDIA driver, while it doesn't really support anything equivalent to GLX_INTEL_swap_event, there is <a href="https://www.khronos.org/registry/OpenGL/extensions/NV/GLX_NV_delay_before_swap.txt" class="remarkup-link" target="_blank" rel="noreferrer">https://www.khronos.org/registry/OpenGL/extensions/NV/GLX_NV_delay_before_swap.txt</a> which has the similar goal of reduced input latency. See the extension description for details, but essentially it allows the application to block until a specified time before the next swap. I'm not sure if that's exactly fits what KWin needs here, but maybe worth considering?.</p></div>
</blockquote>
<p>Thanks, the extension looks interesting. Although a delay timer could work as well and if we want reduce latency we need the timer for mesa drivers anyway. On the other other side this extension gives us somewhat a swap synchronized event to align the paint with. But this could be done as well with <tt style="background: #ebebeb; font-size: 13px;">__GL_MaxFramesAllowed = 1</tt> and <a href="https://phabricator.kde.org/D23881" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D23881</a>. Also this extension would block, so we need to do something similar as in <a href="https://phabricator.kde.org/D23881" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D23881</a> with a separate thread. So in both cases we would need a thread, remaining question now is if there are other advantages with using this extension and not force <tt style="background: #ebebeb; font-size: 13px;">__GL_MaxFramesAllowed = 1</tt>.</p>
<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>Also, I'd be able to test this patch on a PRIME (hybrid graphics) system if nobody has done so yet. Given that there have been synchronization-related issues there before, it's probably worth checking.</p>
<p>However, the patch doesn't seem to apply cleanly to HEAD any longer. Would you be able to post a rebased version?</p></blockquote>
<p>All WIP ideas here have been transferred to a commit series also up for review at the moment. I just rebased it on master. You should be able to do a checkout of it from this diff: <a href="https://phabricator.kde.org/D23514" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D23514</a><br />
To do that directly issue <tt style="background: #ebebeb; font-size: 13px;">arc patch D23514</tt> in your local KWin repository.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23105">https://phabricator.kde.org/D23105</a></div></div><br /><div><strong>To: </strong>romangg, KWin, fredrik<br /><strong>Cc: </strong>ekurzinger, alexde, nicolasfella, alexeymin, kwin, LeGast00n, The-Feren-OS-Dev, sbergeron, jraleigh, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, mart<br /></div>