No subject

Sun May 25 05:33:19 PDT 2008

Hi,<br><br>I asked the same question here, but got no response. I tested drawing to the same surface by multiple threads. I used ImageSurface and the result was promising. I could reduce the total drawing time by factor of almost 2 in my dual core processor.<br>

<br>When you have multiple threads with their own cairo context, you can do high-level graphics operations such as tessellation in parallel, so you can get performance boost regardless of the underlying surface. However, I am not sure this approach is thread-safe across various cairo back-ends.<br>

<br>What is the plan to optimize cairo with the advent of multi-core processors? Creating multiple cairo contexts with multiple threads to the same surface is the right approach?<br><br>Regards,<br>Kwang Yul Seo<br><br><br>

<div class="gmail_quote"><div><div></div><div class="Wj3C7c">On Tue, May 20, 2008 at 8:40 AM, Augusto Radtke &lt;<a href="mailto:radtke at" target="_blank">radtke at</a>&gt; wrote:<br></div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">
Hello! I couldn&#39;t found this answer in the usual places, so maybe someone here can. It&#39;s possible to draw to the same surface by multiple threads? I mean creating two contexts, one with each thread and clip it to different regions of the surface and draw in parallel?<br>

<br>The idea is to reduce the total drawing time but I feel this feature could be backend-specific and for some backend won&#39;t be really useful at all. Am I right?<br><br>Thank you,<br><font color="#888888"><br>Augusto<br>

cairo mailing list<br>
<a href="mailto:cairo at" target="_blank">cairo at</a><br>
<a href="" target="_blank"></a><br></blockquote></div><br>
cairo mailing list<br>
<a href="mailto:cairo at">cairo at</a><br>
<a href="" target="_blank"></a><br></blockquote></div><br>


More information about the cairo mailing list