[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwin
Subject:    Re: Review Request: Swap vsync order, trade in 1frame lag, try harder to detect nvidia framerate (re
From:       Thomas_Lübking <thomas.luebking () web ! de>
Date:       2012-05-10 18:37:41
Message-ID: 20120510183741.21781.65433 () vidsolbach ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> On May 10, 2012, 8:45 a.m., Martin Gr=C3=A4=C3=9Flin wrote:
> > for 4.9 I would say we keep out the egl code

Sorry for not coming back on this - from what i can say, eglSwapInterval ca=
nnot be deactivated on at least the intel chips, so i guess for now we can =
just leave that out (having the option ineffective) and reactivate it once =
eglSwapInterval(0) actually does sth. - if that is demanded at all.

Have you tested the PowerVR chip for vsync capabilities on TBDR?


- Thomas


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103058/#review13655
-----------------------------------------------------------


On April 21, 2012, 6:11 p.m., Thomas L=C3=BCbking wrote:
> =

> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/103058/
> -----------------------------------------------------------
> =

> (Updated April 21, 2012, 6:11 p.m.)
> =

> =

> Review request for kwin and Martin Gr=C3=A4=C3=9Flin.
> =

> =

> Description
> -------
> =

> This performs a paint & glFlush immediately after the buffer swapping and=
 defers the next swapping to the next anticipated frame (or idling)
> The behavior is still not as deterministic as we hoped to be since we can=
not measure the time for the actual vsync :\
> I set a fuzzyness of 6ms what leads to a majority of 2-3ms times in waits=
ync but single wait times up to 8 or 9ms occur (what ultimately can be part=
 of the syncing itself)
> =

> There's some debug code to print lagging.
> =

> TODO:
> - attempt egl support
> - probably lie to the effects about the time
> =

> =

> Diffs
> -----
> =

>   kwin/composite.cpp 6a27e00 =

>   kwin/libkwineffects/kwinglutils_funcs.h a2c047b =

>   kwin/libkwineffects/kwinglutils_funcs.cpp 6d79507 =

>   kwin/options.h 4d37d8b =

>   kwin/options.cpp 6eabc78 =

>   kwin/scene.h c7e462f =

>   kwin/scene.cpp 450402e =

>   kwin/scene_opengl.h 98d4dd4 =

>   kwin/scene_opengl.cpp 43d30ad =

>   kwin/scene_opengl_egl.cpp d0ce360 =

>   kwin/scene_opengl_glx.cpp 67400a8 =

>   kwin/scene_xrender.h 98c4b3b =

>   kwin/scene_xrender.cpp 265825c =

>   kwin/workspace.h 0dcb29c =

>   kwin/workspace.cpp a9deaaa =

> =

> Diff: http://git.reviewboard.kde.org/r/103058/diff/
> =

> =

> Testing
> -------
> =

> I've used a CRT for testing which can sync every 11ms ie. 85Hz and lowere=
d the maxFPS down to 10fps with pretty constant results for the time lost w=
aiting for the sync.
> =

> =

> Thanks,
> =

> Thomas L=C3=BCbking
> =

>


[Attachment #5 (text/html)]

<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 \
solid;">  <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="http://git.reviewboard.kde.org/r/103058/">http://git.reviewboard.kde.org/r/103058/</a>
  </td>
    </tr>
   </table>
   <br />





<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <p style="margin-top: 0;">On May 10th, 2012, 8:45 a.m., <b>Martin \
Gräßlin</b> wrote:</p>  <blockquote style="margin-left: 1em; border-left: 2px solid \
#d0d0d0; padding-left: 10px;">  <pre style="white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">for 4.9 I would say we keep out the egl code</pre>  </blockquote>







</blockquote>

<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Sorry for not coming \
back on this - from what i can say, eglSwapInterval cannot be deactivated on at least \
the intel chips, so i guess for now we can just leave that out (having the option \
ineffective) and reactivate it once eglSwapInterval(0) actually does sth. - if that \
is demanded at all.

Have you tested the PowerVR chip for vsync capabilities on TBDR?</pre>
<br />








<p>- Thomas</p>


<br />
<p>On April 21st, 2012, 6:11 p.m., Thomas Lübking wrote:</p>






<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('http://git.reviewboard.kde.org/media/rb/images/review_request_box_top_bg.png'); \
background-position: left top; background-repeat: repeat-x; border: 1px black \
solid;">  <tr>
  <td>

<div>Review request for kwin and Martin Gräßlin.</div>
<div>By Thomas Lübking.</div>


<p style="color: grey;"><i>Updated April 21, 2012, 6:11 p.m.</i></p>






<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" \
style="border: 1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">This performs a paint &amp; glFlush immediately after the buffer \
swapping and defers the next swapping to the next anticipated frame (or idling) The \
behavior is still not as deterministic as we hoped to be since we cannot measure the \
time for the actual vsync :\ I set a fuzzyness of 6ms what leads to a majority of \
2-3ms times in waitsync but single wait times up to 8 or 9ms occur (what ultimately \
can be part of the syncing itself)

There&#39;s some debug code to print lagging.

TODO:
- attempt egl support
- probably lie to the effects about the time</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">I&#39;ve used a CRT for testing which can sync every 11ms ie. 85Hz and \
lowered the maxFPS down to 10fps with pretty constant results for the time lost \
waiting for the sync.</pre>  </td>
 </tr>
</table>




<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>kwin/composite.cpp <span style="color: grey">(6a27e00)</span></li>

 <li>kwin/libkwineffects/kwinglutils_funcs.h <span style="color: \
grey">(a2c047b)</span></li>

 <li>kwin/libkwineffects/kwinglutils_funcs.cpp <span style="color: \
grey">(6d79507)</span></li>

 <li>kwin/options.h <span style="color: grey">(4d37d8b)</span></li>

 <li>kwin/options.cpp <span style="color: grey">(6eabc78)</span></li>

 <li>kwin/scene.h <span style="color: grey">(c7e462f)</span></li>

 <li>kwin/scene.cpp <span style="color: grey">(450402e)</span></li>

 <li>kwin/scene_opengl.h <span style="color: grey">(98d4dd4)</span></li>

 <li>kwin/scene_opengl.cpp <span style="color: grey">(43d30ad)</span></li>

 <li>kwin/scene_opengl_egl.cpp <span style="color: grey">(d0ce360)</span></li>

 <li>kwin/scene_opengl_glx.cpp <span style="color: grey">(67400a8)</span></li>

 <li>kwin/scene_xrender.h <span style="color: grey">(98c4b3b)</span></li>

 <li>kwin/scene_xrender.cpp <span style="color: grey">(265825c)</span></li>

 <li>kwin/workspace.h <span style="color: grey">(0dcb29c)</span></li>

 <li>kwin/workspace.cpp <span style="color: grey">(a9deaaa)</span></li>

</ul>

<p><a href="http://git.reviewboard.kde.org/r/103058/diff/" style="margin-left: \
3em;">View Diff</a></p>




  </td>
 </tr>
</table>








  </div>
 </body>
</html>



_______________________________________________
kwin mailing list
kwin@kde.org
https://mail.kde.org/mailman/listinfo/kwin


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic