<p dir="ltr">All,<br>
Perhaps a simpler approach would be better. We could add a function to wayland-server called wl_client_post_event_queue which would simply set the wants_flush flag on the client connection. This function would be fast ,require no I/O, and safe to call multiple times so Weston could simply call it on all clients with surfaces visible on the output in question at the time when it would call frame events. Then, when the event loop flushes the clients, the release events will get sent out.<br>
--Jason Ekstrand</p>
<div class="gmail_quote">On Sep 25, 2013 11:47 AM, "Tomeu Vizoso" <<a href="mailto:tomeu@tomeuvizoso.net">tomeu@tomeuvizoso.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 16 September 2013 17:28, Neil Roberts <span dir="ltr"><<a href="mailto:neil@linux.intel.com" target="_blank">neil@linux.intel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Here is a second version of the patch to do the posting. It makes the<br>
patch for doing the queue disabling redundant.<br></blockquote><div><br></div><div>Have done some testing on the RPi and this patch allows me not having to sync in a loop while waiting for buffer releases in SwapBuffers.<br>
<br></div><div>I'm a bit concerned though about applications that install frame callbacks for reasons other than knowing when to start to draw, such as gathering timing statistics. I'm also concerned about making things more complicated and thus harder to debug.<br>
<br></div><div>I have seen a flag proposed to enable or disable the queueing of release events, but I'm not sure what would make most sense to be the default value of it.<br><br></div><div>Regards,<br><br>Tomeu<br></div>
</div></div></div>
<br>_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
<br></blockquote></div>