<div dir="ltr"><div><span style="color:rgb(0,0,0)"><font face="arial, sans-serif" style="">Thank you, Julian. </font></span></div><div><span style="color:rgb(0,0,0)"><font face="arial, sans-serif" style=""><br></font></span></div><div><span style="color:rgb(0,0,0)"><font face="arial, sans-serif" style="">This was a very helpful observation. In our actual application there is an underlying JPEG image, and we wanted the image data to show through the drawn lines, so GXcopy doesn't do what I want, but GXand does, and it renders instantly! </font></span></div><div><span style="color:rgb(0,0,0)"><font face="arial, sans-serif" style=""><br></font></span></div><div><font color="#000000" face="arial, sans-serif">That was driving me crazy.</font></div><div><font color="#000000" face="arial, sans-serif"><br></font></div><div><font color="#000000" face="arial, sans-serif">Also, sorry to respond in this non-standard way, but I started this thread with a work email but now work is blocking mail from xorg, so I had to switch to personal mail. </font></div><div><font color="#000000" face="arial, sans-serif"><br></font></div><div><font color="#000000" face="arial, sans-serif">Thanks again,</font></div><div><font color="#000000" face="arial, sans-serif">- Paul</font></div><span style="color:rgb(0,0,0)"><div><b style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"><br></b></div><b style="font-size:medium;font-family:"Times New Roman"">Julian Bradfield</b></span><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"> </span><a href="mailto:xorg%40lists.x.org?Subject=Re%3A%20Slow%20rendering%20when%20GC.line_style%20%3D%20LineOnOffDash&In-Reply-To=%3C25483.8043.752740.986387%40high.jcbradfield.org%3E" title="Slow rendering when GC.line_style = LineOnOffDash" style="font-family:"Times New Roman";font-size:medium">jcb+fdt at julianbradfield.org</a><br style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"><i style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium">Sat Dec 3 10:05:31 UTC 2022</i><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"></span><p style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"></p><ul style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"><li>Previous message (by thread): <a href="https://lists.x.org/archives/xorg/2022-December/061187.html">Slow rendering when GC.line_style = LineOnOffDash</a></li><li>Next message (by thread): <a href="https://lists.x.org/archives/xorg/2022-December/061189.html">[ANNOUNCE] transset 1.0.3</a></li><li><b>Messages sorted by:</b> <a href="https://lists.x.org/archives/xorg/2022-December/date.html#61188">[ date ]</a> <a href="https://lists.x.org/archives/xorg/2022-December/thread.html#61188">[ thread ]</a> <a href="https://lists.x.org/archives/xorg/2022-December/subject.html#61188">[ subject ]</a> <a href="https://lists.x.org/archives/xorg/2022-December/author.html#61188">[ author ]</a></li></ul><hr style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"><pre style="white-space:pre-wrap;color:rgb(0,0,0)">On 2022-12-03, Farrington, Paul <<a href="https://lists.x.org/mailman/listinfo/xorg">Paul.Farrington at fisglobal.com</a>> wrote:
><i> We’ve noticed that XDrawRectangle where the GC.line_style is LineOnOffDash has
</i>><i> gotten slower in recent X Server releases. We’ve observed this on both Linux
</i>><i> RH8 and FBSD 11.4 and above. There are two sample programs pasted below, one
</i>><i> which draws 5 rectangles with LineSolid and one which draws 5 rectangles with
</i>><i> LineOnOffDash. There is also a makefile for RH8. Running the two programs with
</i>><i> an X Server version 1.18.4, both programs render the rectangles instantly. But
</i>><i> in X Server version 1.20.8 or more obviously 1.20.14, rendering the dashed
</i>><i> line rectangles is much slower. You can watch them being drawn on the screen,
</i>><i> whereas the solid line version still renders instantly.
</i>
Interesting. It's still a bug, but your sample programs use an odd
way to draw lines - setting the GC function to Clear, leaving
foreground and background at default, and using the plane_mask to
specify the color.

If you draw dashed lines the normal way (with GC function Copy and the
color specified in foreground), it's fine - it's the non-trivial
plane_mask that appears to be triggering the problem. Quite how Xorg
can take human-noticeable time to do masked dashed line draw, I can't
imagine!</pre><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Paul Farrington<br><a href="mailto:paul@eastshore.com" target="_blank">paul@eastshore.com</a></div><div><a href="http://www.linkedin.com/in/paulfarrington1" target="_blank">linkedin.com/in/paulfarrington1</a><br>510-914-0088 (cell)<br></div></div></div></div></div></div></div></div>