<div dir="ltr">Hi pekka<div><br></div><div>I test presentation on my side. The presentation results is not accurate because our pageflip event send last frame's timestamp every time. So weston_output_finish_frame send last frame's present tine</div><div>to current frame's feedback. For this situation, I just delay one frame to send present event. Does this get the right c2p time? Thank you.</div><div><br></div><div>Best Regards</div><div>Nancy</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-05-02 18:17 GMT+08:00 zou lan <span dir="ltr"><<a href="mailto:nancy.lan.zou@gmail.com" target="_blank">nancy.lan.zou@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi pekka<div><br></div><div>Thank you for your clearly analysis. I understand the presentation protocol is enough for the requirement now.</div><div><br></div><div>I used to not study the protocol deeply because the code is a little more than just record the flip timestamp. The</div><div>test want to do this as simple as possible.</div><div><br></div><div>I will try the presentation first. Thank you!</div><div><br></div><div>Best Regards</div><div>Nancy</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2018-05-02 16:59 GMT+08:00 Pekka Paalanen <span dir="ltr"><<a href="mailto:ppaalanen@gmail.com" target="_blank">ppaalanen@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Wed, 2 May 2018 16:33:43 +0800<br>
zou lan <<a href="mailto:nancy.lan.zou@gmail.com" target="_blank">nancy.lan.zou@gmail.com</a>> wrote:<br>
<br>
> Add to wayland mail list.<br>
> <br>
> Hi pekka<br>
> <br>
> I used to consider the time line and presentation protocol. But they are<br>
> all focus on surface, not buffer. The test want to know the buffer latency,<br>
> although they are the same as surface's on<br>
> most cases. Applications think maybe some buffers doesn't display and used<br>
> again.<br>
> <br>
> By the way, could add a event to wl_buffer's protocol achieve the<br>
> requirement? Thank you.<br>
<br>
</span>Hi Nancy,<br>
<br>
when a client creates a wp_presentation_feedback object, that object<br>
tracks the particular wl_surface.commit carrying an attached wl_buffer.<br>
So it is specific to the particular commit, not just to the surface<br>
or even to the buffer (buffers get re-used or could theoretically be<br>
used on multiple surfaces).<br>
<br>
Can you not have the client record both the current time at sending<br>
wl_surface.commit and the corresponding timestamp it gets from<br>
wp_presentation_feedback? Why would this not be enough?<br>
<br>
Please, see clients/presentation-shm.c in the Weston repository for an<br>
example that tracks this kind of presentation latencies.<br>
<br>
<br>
Thanks,<br>
pq<br>
<div class="m_-6562455484879137240HOEnZb"><div class="m_-6562455484879137240h5"><br>
> ---------- Forwarded message ----------<br>
> From: Pekka Paalanen <<a href="mailto:ppaalanen@gmail.com" target="_blank">ppaalanen@gmail.com</a>><br>
> Date: 2018-05-02 15:48 GMT+08:00<br>
> Subject: Re: unique id for wayland objects<br>
> To: zou lan <<a href="mailto:nancy.lan.zou@gmail.com" target="_blank">nancy.lan.zou@gmail.com</a>><br>
> <br>
> <br>
> On Wed, 2 May 2018 10:57:17 +0800<br>
> zou lan <<a href="mailto:nancy.lan.zou@gmail.com" target="_blank">nancy.lan.zou@gmail.com</a>> wrote:<br>
> <br>
> > Hi pekka<br>
> ><br>
> > I want to get the accurate buffer latency from a buffer commit by client  <br>
> to<br>
> > display on the screen. The client can get the timestamp when buffer commit<br>
> > and release. So weston only need to give a<br>
> > timestamp when call on_pageflip.<br>
> ><br>
> > When do the real time analysis, there are many clients,  I want to use one<br>
> > unique id to distinguish from each other quickly.  <br>
> <br>
> Hi,<br>
> <br>
> is there any reason you don't use presentation_feedback interface? To<br>
> me it sounds like that would provide exactly what you need.<br>
> <br>
> <a href="https://cgit.freedesktop.org/wayland/wayland-protocols/" rel="noreferrer" target="_blank">https://cgit.freedesktop.org/w<wbr>ayland/wayland-protocols/</a><br>
> tree/stable/presentation-time<br>
> <br>
> Also, could we have this coversation on the mailing list, please?<br>
> <br>
> <br>
> Thanks,<br>
> pq<br>
<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>