Re: unique id for wayland objects

2018-05-31 Thread Pekka Paalanen
On Thu, 31 May 2018 11:32:40 +0800 zou lan wrote: > >>The intended behaviour is that Weston repaints at most once for each > >>display refresh cycle, the deadline being 7 ms (if using the default > >>value of repaint-window) before the next vblank. In other words, there > >>should be a significan

Re: unique id for wayland objects

2018-05-30 Thread zou lan
Hi Michel & pekka >>Yes, drm_handle_vblank must be called before drm_crtc_send_vblank_event, >>otherwise it's not surprising that the timestamp in the event is wrong. :) Yes. our code call drm_crtc_send_vblank event first. The orignal fps is 60, but if I swap the order of drm_crtc_send_vblank_even

Re: unique id for wayland objects

2018-05-30 Thread Michel Dänzer
On 2018-05-30 02:48 PM, Pekka Paalanen wrote: > On Wed, 30 May 2018 18:33:40 +0800 > zou lan wrote: > >> Hi pekka >> >> 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 co

Re: unique id for wayland objects

2018-05-30 Thread Pekka Paalanen
On Wed, 30 May 2018 18:33:40 +0800 zou lan wrote: > Hi pekka > > 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. > > I don't know

Re: unique id for wayland objects

2018-05-30 Thread zou lan
Hi pekka 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. I don't know why the owner write code like this. but if I swap the code order,

Re: unique id for wayland objects

2018-05-24 Thread zou lan
Hi pekka >>are the c2p numbers from weston-presentation-shm demo? yes. I use this demo. My clock is CLOCK_MONOTONIC. I check the drm kernel code, I find each vblank event send the last vblank's timestamp. system time sec msec [ 263.000526] vblank_event 262 983 [

Re: unique id for wayland objects

2018-05-24 Thread Pekka Paalanen
On Thu, 24 May 2018 15:26:23 +0800 zou lan wrote: > Hi pekka > > >>are the c2p numbers from weston-presentation-shm demo? > yes. I use this demo. My clock is CLOCK_MONOTONIC. > > I check the drm kernel code, I find each vblank event send the last > vblank's timestamp. > > system time

Re: unique id for wayland objects

2018-05-22 Thread Pekka Paalanen
On Mon, 21 May 2018 23:06:12 +0800 zou lan wrote: > Hi pekka > > I debug the presentation time recently. I have checked each user call > drmAtomicCommit get the corresponding pageflip event. > But some presentation results (c2p) are a little weird. They are 1~5ms or > -1 ~ -5 ms. some results ar

Re: unique id for wayland objects

2018-05-21 Thread zou lan
Hi pekka I debug the presentation time recently. I have checked each user call drmAtomicCommit get the corresponding pageflip event. But some presentation results (c2p) are a little weird. They are 1~5ms or -1 ~ -5 ms. some results are normal(8 ~ 20 ms). I used to explain the weird result is becau

Re: unique id for wayland objects

2018-05-12 Thread Pekka Paalanen
On Thu, 10 May 2018 12:53:49 +0800 zou lan wrote: > Hi pekka > > 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 > to current frame's feedb

Re: unique id for wayland objects

2018-05-09 Thread zou lan
ing timestamp it gets from >> wp_presentation_feedback? Why would this not be enough? >> >> Please, see clients/presentation-shm.c in the Weston repository for an >> example that tracks this kind of presentation latencies. >> >> >> Thanks, >> pq >>

Re: unique id for wayland objects

2018-05-02 Thread zou lan
gets from > wp_presentation_feedback? Why would this not be enough? > > Please, see clients/presentation-shm.c in the Weston repository for an > example that tracks this kind of presentation latencies. > > > Thanks, > pq > > > -- Forwarded message -

Re: unique id for wayland objects

2018-05-02 Thread Pekka Paalanen
rded message -- > From: Pekka Paalanen > Date: 2018-05-02 15:48 GMT+08:00 > Subject: Re: unique id for wayland objects > To: zou lan > > > On Wed, 2 May 2018 10:57:17 +0800 > zou lan wrote: > > > Hi pekka > > > > I want to get the accurate

Fwd: unique id for wayland objects

2018-05-02 Thread zou lan
isplay and used again. By the way, could add a event to wl_buffer's protocol achieve the requirement? Thank you. Best Regards Nancy -- Forwarded message -- From: Pekka Paalanen Date: 2018-05-02 15:48 GMT+08:00 Subject: Re: unique id for wayland objects To: zou lan On Wed

Re: unique id for wayland objects

2018-04-27 Thread Pekka Paalanen
On Fri, 27 Apr 2018 18:43:59 +0800 zou lan wrote: > Hi Pekka & all > > I want to ask is there a method to mark the wl_buffer between client and > server. . > > I try to use the id of wl_object, but it's not unique between different > clients. Do you have some > suggestions? Hi, Wayland does n

unique id for wayland objects

2018-04-27 Thread zou lan
Hi Pekka & all I want to ask is there a method to mark the wl_buffer between client and server. . I try to use the id of wl_object, but it's not unique between different clients. Do you have some suggestions? Best Regards Nancy ___ wayland-devel mailin