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 22-04-2019, 17:40   #421
Registered User
 
hasse_A's Avatar

Join Date: Feb 2013
Location: Tyrell Bay,Carriacou
Boat: Allegro 33
Posts: 559
Re: Tactics Plugin

I am trying out OpenCPN 5.0 with tactics pi but find it terribly sluggish.
So sluggish that you get the sign coming up saying the program has stopped
working. Do you want to end it or wait for it to answer.
This happens as soon as you open the tactics window.

Running on win7
OpenCPN 5.0.0+9065270
tactics_pi-1.0008-ov50-win32

All works fine on 4.8.8

/Hans
hasse_A is offline   Reply With Quote
Old 22-04-2019, 17:44   #422
Registered User
 
hasse_A's Avatar

Join Date: Feb 2013
Location: Tyrell Bay,Carriacou
Boat: Allegro 33
Posts: 559
Re: Tactics Plugin

Additional info:

CPU usage = 25 % when tactics window present. otherwise only 1 %.

/Hans
hasse_A is offline   Reply With Quote
Old 23-04-2019, 21:10   #423
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
Re: Tactics Plugin

Hans, I tried it a little with VDR play and the second test file called Sample2.txt


While the control of the menus is less than ideal, the task manager was just about 3% CPU for O.


I don't know what to suggest. Perhaps try downloading a new file?
Attached Thumbnails
Click image for larger version

Name:	Screenshot (32).jpg
Views:	74
Size:	331.6 KB
ID:	190726  
rgleason is offline   Reply With Quote
Old 24-04-2019, 06:32   #424
Registered User

Join Date: Dec 2012
Posts: 180
Re: Tactics Plugin

Sorry to read.

Only thing I can suggest Hans is maybe uninstalling and reinstalling the apps and plugins.
RonSouthworth is offline   Reply With Quote
Old 24-04-2019, 13:14   #425
Registered User
 
hasse_A's Avatar

Join Date: Feb 2013
Location: Tyrell Bay,Carriacou
Boat: Allegro 33
Posts: 559
Re: Tactics Plugin

Quote:
Originally Posted by rgleason View Post
Hans, I tried it a little with VDR play and the second test file called Sample2.txt


While the control of the menus is less than ideal, the task manager was just about 3% CPU for O.


I don't know what to suggest. Perhaps try downloading a new file?

Hi Rick!

I have desiccated this. Of course I did a clean install and used my old opencpn.ini file. The program more or less freezes.
I then removed the .ini-file and started from scratch. I have found that as soon as you add wind history you are in trouble.
It's enough with just that instrument. With 4.8.8 no problem.

I am not really in the mode to do more debugging at the moment.
Please try and reproduce this behavior and maybe Tom can have a look at it.

/Hans
hasse_A is offline   Reply With Quote
Old 24-04-2019, 13:47   #426
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Tactics Plugin

Quote:
Originally Posted by hasse_A View Post
Hi Rick!



I have desiccated this. Of course I did a clean install and used my old opencpn.ini file. The program more or less freezes.

I then removed the .ini-file and started from scratch. I have found that as soon as you add wind history you are in trouble.

It's enough with just that instrument. With 4.8.8 no problem.



I am not really in the mode to do more debugging at the moment.

Please try and reproduce this behavior and maybe Tom can have a look at it.



/Hans
I think I know why wind history is a problem. I thought I fixed that long time ago. Let me look at it again.

P.S. the issue was the wind history used lots of calls to the system timezone function which is CPU expensive for some reason.
transmitterdan is offline   Reply With Quote
Old 25-04-2019, 20:35   #427
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
Re: Tactics Plugin

TDan, I think I know what might have happened. You might have fixed it in sweepplot or dashboard (...but Dashboard does not have a history instrument does it?).


Anyway that would be great if you could fix it.
rgleason is offline   Reply With Quote
Old 26-04-2019, 04:59   #428
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Tactics Plugin

Yes, I think it was Dashboard that was fixed. It has a wind history graph.

Where in GitHub is this plugin maintained?
transmitterdan is offline   Reply With Quote
Old 26-04-2019, 06:31   #429
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Tactics Plugin

Ok, I found the github repository for tactics_pi. And it does not have the speed fixes for the history plots. I will submit a PR in a couple days that should speed up the history calculations by 1000:1.
transmitterdan is offline   Reply With Quote
Old 28-04-2019, 20:14   #430
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Tactics Plugin

I have submitted the PR.

But there are many issues still remaining with tactics_pi. The components copied from dashboard_pi have changed a lot since they were copied. But no one has copied the changes over to tactics_pi.

Maybe it doesn’t matter because the dashboard components are always available to a user so they don’t really need the same ones from tactics_pi.
transmitterdan is offline   Reply With Quote
Old 29-04-2019, 06:49   #431
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
Re: Tactics Plugin

Quote:
Originally Posted by transmitterdan View Post
I have submitted the PR.

But there are many issues still remaining with tactics_pi. The components copied from dashboard_pi have changed a lot since they were copied. But no one has copied the changes over to tactics_pi.

Maybe it doesn’t matter because the dashboard components are always available to a user so they don’t really need the same ones from tactics_pi.

I think it does matter, how hard is it to get them in alignment?

Or perhaps merge them together? --however Power boats don't need all that tactics has.



Are there particular areas that need alignment that you know of?


I think your PR History Optimization also includes this fix

"Fix crash when lat or long are empty in RMB message"?
Is that correct?

I have pulled your PR and was going to update Tactics for ov42 and ov50, but perhaps we should look at updating it more?


How would you suggest approaching this?

rgleason is offline   Reply With Quote
Old 29-04-2019, 07:52   #432
Registered User
 
Canne's Avatar

Join Date: Aug 2014
Posts: 246
Re: Tactics Plugin

rgleason, I am interesting in testing the PR, I've pulled it into a local. But where I can get opencpn.lib to link with VS2013 ? Wiki-links are for <5.0.
Canne is offline   Reply With Quote
Old 29-04-2019, 10:36   #433
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Tactics Plugin

Quote:
Originally Posted by Canne View Post
rgleason, I am interesting in testing the PR, I've pulled it into a local. But where I can get opencpn.lib to link with VS2013 ? Wiki-links are for <5.0.
I think you need to move up to Visual Studio 2017 to work effectively with V5.0. Or you can wait until someone builds the plugin for OV5.0.

None of the O developers use VS2013 so far as I know.
transmitterdan is offline   Reply With Quote
Old 29-04-2019, 12:12   #434
Registered User
 
Canne's Avatar

Join Date: Aug 2014
Posts: 246
Re: Tactics Plugin

Thanks, transmitterdan, for your efforts. I'll wait, no problem! Don't forget the polar performance history graph, it is also sluggish, can't live without it. For the rest, why not integrate tactics functions in the O dashboard, like a race-mode?
Canne is offline   Reply With Quote
Old 29-04-2019, 17:49   #435
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
Re: Tactics Plugin

Canne, I haven't updated appveyor to run the ov50 build, I was going to do that but wanted to get the other issues resolved first.


To answer your first question. I have a copy of opencpn-4.2.lib -->opencpn.lib which should work, if it doesnt I have a later version
See below take the .doc off and rename it. Please.



However you can use the ov42 version that I tested, here
https://ci.appveyor.com/project/rgle...3867/artifacts
Use it with OpenCPN v4.8.8

while we get things fixed hopefully. Dan, thank you so much for the big fix. Can you advise please?
Attached Thumbnails
Click image for larger version

Name:	Screenshot (8).jpg
Views:	51
Size:	357.7 KB
ID:	191095  
Attached Files
File Type: doc opencpn-4-2-0.lib.doc (124.7 KB, 11 views)
rgleason is offline   Reply With Quote
Reply

Tags
plug


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
Multihull storm tactics? sneuman Multihull Sailboats 234 13-04-2023 18:01
Storm Tactics irwinsailor The Library 90 15-10-2009 04:24
Heavy Weather Tactics and Equipment Benny Seamanship & Boat Handling 54 10-09-2009 06:04
Storm Tactics GordMay The Library 1 17-04-2005 05:54
Heavy-Weather Tactics: GordMay General Sailing Forum 25 28-10-2003 15:44

Advertise Here


All times are GMT -7. The time now is 19:50.


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.