Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 15-11-2019, 01:31   #16
Registered User

Join Date: Feb 2017
Location: Southern California
Posts: 109
Re: Opencpn 5 exporting to GPX poor performance

Thanks for looking into this, much appreciated. Glad you are getting into the cause of this.
J805 is offline   Reply With Quote
Old 15-11-2019, 02:23   #17
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Opencpn 5 exporting to GPX poor performance

So a detailed look at this it seems to be that because the progress dialog makes a Yield call to the event processing loop then between each update of the progress bar there are many timer messages getting processed. This takes some time and for reasons I can't quite explain the amount of time increases the longer the number of GPX points exported. So the progress bar gets progressively slower over time.

On Windows the solution is simple. Don't use wxGenericProgressDialog and use instead wxProgressDialog. This does not Yield because it uses the native Windows progress bar and then the entire export takes about 2 seconds on my test system. I need to check some GTK systems to see if it also will work there. On systems that are GTK based the progress dialog may work differently. Also, someone would have to test on a Mac too since progress dialog may be different there as well.

For systems that do not have a native progress bar feature there is no simple solution.
transmitterdan is offline   Reply With Quote
Old 19-11-2019, 17:13   #18
Registered User

Join Date: Feb 2017
Location: Southern California
Posts: 109
Re: Opencpn 5 exporting to GPX poor performance

I don't have a Mac, just windows systems but would be more than happy to do any additional testing on these if you need me to.



Thanks
J805 is offline   Reply With Quote
Old 20-11-2019, 04:54   #19
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Opencpn 5 exporting to GPX poor performance

I have tested a fix on Linux and Windows. There is low probability that the fix will adversely affect Mac systems.
transmitterdan is offline   Reply With Quote
Reply

Tags
enc, opencpn

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Skips new Seafrost poor performance problem Richard Kollmann Plumbing Systems and Fixtures 87 19-07-2019 16:08
oBabel plugin - Exporting KML/GPX to Chartplotters Rasbats OpenCPN 22 08-02-2016 08:03
Rookie questions - boundary circles; exporting options; GPX files fredgmeyer OpenCPN 5 23-05-2014 22:22
New Boat , Poor Battery Performance PhilDuhs Electrical: Batteries, Generators & Solar 16 08-07-2011 12:09
Exporting Tracks and Stitched Charts from OpenCPN allanpeda OpenCPN 1 15-05-2011 16:07

Advertise Here


All times are GMT -7. The time now is 18:33.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.