<div dir="ltr">Hi pekka<div><br></div><div>I'm not familiar with kernel. I know part of drm driver is implement by ourself. I check the vblank callback function, it sends pageflip event first if there is a frame complete, update vblank timestamp later.</div><div><br></div><div>I don't know why the owner write code like this. but if I swap the code order, the fps decrease a lot.</div><div>I can sure this impact the weston's page flip timestamp. Does this have some impacts to weston except timeline?</div><div><br></div><div>I study a little about timeline, I think the picture could still show the c2p(interval between damage commit and hit screen). Is it right? 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-24 15:42 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">On Thu, 24 May 2018 15:26:23 +0800<br>
<span class="">zou lan <<a href="mailto:nancy.lan.zou@gmail.com">nancy.lan.zou@gmail.com</a>> wrote:<br>
<br>
> Hi pekka<br>
> <br>
</span><span class="">> >>are the c2p numbers from weston-presentation-shm demo? <br>
> yes. I use this demo. My clock is CLOCK_MONOTONIC.<br>
> <br>
> I check the drm kernel code, I find each vblank event send the last<br>
> vblank's timestamp.<br>
> <br>
> system time sec msec<br>
> [ 263.000526] vblank_event 262 983<br>
> [ 263.017236] vblank_event 263 0<br>
> [ 263.033864] vblank_event 263 17<br>
> [ 263.050533] vblank_event 263 33<br>
> [ 263.067215] vblank_event 263 50<br>
> <br>
> I think that's should be the main reason cause the c2p time weird. I don't<br>
> know why kernel return last frame's timestamp. I am still debuging it.<br>
<br>
</span>Indeed, that does not sound right. Maybe contact the driver developers<br>
about this?<br>
<br>
Which kernel display driver are you using?<br>
<br>
<br>
Thanks,<br>
pq<br>
</blockquote></div><br></div>