<table><tr><td style="">zzag 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/D27788">View Revision</a></tr></table><br /><div><div><p>The key point about EGL_KHR_partial_update is that the compositor know what parts of the back buffer are going to be updated. So the compositor could specify the damage region _beforehand_ recording command buffers. If the compositor doesn't have a sophisticated effects pipeline, e.g. weston, then it's pretty trivial to determine the buffer damage, but that's not the case for us, unfortunately.</p>
<p>Ideally, a compositing cycle must be split into several phases - pre paint, paint, and maybe post paint. In the pre paint phase, the compositor would do necessary bookkeeping so we know what the damage region for the next frame is.</p>
<p>I really like the idea of having a hook that is called when the scene is about to start recording a command buffer for the next frame, but given the current design of the effects pipeline I am starting to think that we cannot support EGL_KHR_partial_update at the moment. The dirty region for the next frame is computed too late and I don't see how we can fix it because effects have the final say in what area of the screen will be repainted. :/</p>
<p>I would love to be proven wrong, though.</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/D27788">https://phabricator.kde.org/D27788</a></div></div><br /><div><strong>To: </strong>apol, KWin, Plasma: Mobile<br /><strong>Cc: </strong>mwolff, zzag, davidedmundson, kwin, Orage, cacarry, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>