<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 199: wxwidgets new driver very very slow </title><link href="https://sourceforge.net/p/plplot/bugs/199/" rel="alternate"/><link href="https://sourceforge.net/p/plplot/bugs/199/feed.atom" rel="self"/><id>https://sourceforge.net/p/plplot/bugs/199/</id><updated>2022-01-18T19:05:20.834000Z</updated><subtitle>Recent changes to 199: wxwidgets new driver very very slow </subtitle><entry><title>#199 wxwidgets new driver very very slow </title><link href="https://sourceforge.net/p/plplot/bugs/199/?limit=25#6cf7" rel="alternate"/><published>2022-01-18T19:05:20.834000Z</published><updated>2022-01-18T19:05:20.834000Z</updated><author><name>giloo</name><uri>https://sourceforge.net/u/gilles-duvert/</uri></author><id>https://sourceforge.net88bea51c15a515664202a5e90c816ddbead3c2dc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, the culprit is the Clipper object used in DrawLine.&lt;br/&gt;
more precisely, because it calls wxRegion() which somehow calls gdk_cairo_region_create_from_surface() each time, this is terribly long.&lt;/p&gt;
&lt;p&gt;making wxRect wxPLDevice::GetClipRegion() a wxRect and not a wxRegion, for example with:&lt;br/&gt;
   return wxRect(cpoints&lt;span&gt;[0]&lt;/span&gt;,cpoints&lt;span&gt;[2]&lt;/span&gt;);&lt;br/&gt;
//instead of    return Region( 4, cpoints );&lt;br/&gt;
(and the declarations,etc) &lt;br/&gt;
is sufficient to get a reasonable speed.&lt;/p&gt;
&lt;p&gt;Reasonable because the old driver is still 6 times faster.&lt;/p&gt;
&lt;p&gt;I suggest strongly to patch this driver asap and trigger backports, as the current driver is so buggy.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#199 wxwidgets new driver very very slow </title><link href="https://sourceforge.net/p/plplot/bugs/199/?limit=25#43bd" rel="alternate"/><published>2022-01-13T18:25:43.137000Z</published><updated>2022-01-13T18:25:43.137000Z</updated><author><name>giloo</name><uri>https://sourceforge.net/u/gilles-duvert/</uri></author><id>https://sourceforge.netc4451cef0927b94b9e644e1175e38a5ad2091626</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;please read ' example c++/x11' in above report.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>wxwidgets new driver very very slow </title><link href="https://sourceforge.net/p/plplot/bugs/199/" rel="alternate"/><published>2022-01-12T18:22:24.494000Z</published><updated>2022-01-12T18:22:24.494000Z</updated><author><name>giloo</name><uri>https://sourceforge.net/u/gilles-duvert/</uri></author><id>https://sourceforge.netdc207f802e44c6a25533141aeb097112bad8e5cd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;br/&gt;
I'm expericencing a very annoying slowness of the new wxwidgets driver compared to its 'old' ancestor.&lt;br/&gt;
The procedure to test it is easy:&lt;br/&gt;
- compile plplot 5.15 with  -DBUILD_TEST=ON and alternatively with  -DOLD_WXWIDGETS=ON and  -DOLD_WXWIDGETS=OFF. In both cases install and compare the time it takes to plot example c++/x110&lt;br/&gt;
- the time is ~10 larger with the new driver&lt;br/&gt;
- this factor goes as square of the size of the plot window (try with -geometry 3000x30000) wich almost never succeeds to plot with the new driver, and ~3 seconds for the old.&lt;/p&gt;
&lt;p&gt;by comparison, X11 is instantaneous.&lt;/p&gt;
&lt;p&gt;My configuration: Mageia 8 , wxwidgets 3.1 (wxgtk) , gcc 10.3.0 , plplot 5.15.0&lt;/p&gt;
&lt;p&gt;Apologies if this has already been reported.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>