GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — wxwidgets new driver very very slow · Issue #9 · PLplot/PLplot

wxwidgets new driver very very slow  #9

New issue
Copy link
New issue
Copy link
Open
Open
wxwidgets new driver very very slow #9
Copy link

Description

@GillesDuvert
GillesDuvert
opened on Sep 5, 2023
Issue body actions

I'm expericencing a very annoying slowness of the new wxwidgets driver compared to its 'old' ancestor.
The procedure to test it is easy:

  • 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++/x11
  • the time is ~10 larger with the new driver
  • 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.

by comparison, X11 is instantaneous.

My configuration: Mageia 8 , wxwidgets 3.1 (wxgtk) , gcc 10.3.0 , plplot 5.15.0

The culprit is the Clipper object used in DrawLine.
more precisely, because it calls wxRegion() which somehow calls gdk_cairo_region_create_from_surface() each time, this is terribly long.

making wxRect wxPLDevice::GetClipRegion() a wxRect and not a wxRegion, for example with:
return wxRect(cpoints[0],cpoints[2]);
//instead of return Region( 4, cpoints );
(and the declarations,etc)
is sufficient to get a reasonable speed.

Reasonable because the old driver is still 6 times faster.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.