|
|
21-10-2014, 01:55
|
#166
|
Registered User
Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 844
|
Re: OpenCPN Beta Version 3.3.2118 Released
Coming back to the particles problem on low powered Windows 8.1 with a touch screen :
Quote:
Originally Posted by Ptizef
when particle ON and displayed :
1) the mouse wheel and "finger" smooth zooming is broken
2) I can't exit O. I must close the plugin before( sometime I got crash )
2) If I uncheck it, when clicking OK to close the setting dialog, the change is not applied ( the code after the "ShowModal" is not run )
|
I would add a fourth point :
when particles displayed, if I open option dialog and close it, the tool-bar never reappears until I close plugin or particles
some details :
point 2 : when I click on the red cross or Ctrl+Q, O intents to close, the slanted lines appear, then nothing more. O is still active the only mean to exit then is to close the plugin, or unclick "wind" to close particles. Then O effectively close, but sometime I get a crash
I tried in debug mode, but I got nothing clear but showing the entire O process was not stopped
point 3: I found a workaround but it's not satisfying, because I didn't understand why it's not working with particles whereas it works without and why when clicking on "OK" or "Cancel" button, the code after "ShowModal" is not executed
Obviously, some background tasks are broken by particles display on this machine. I tried to deactivate the timer, and all problems are gone, but of course particles are no longer displayed
Jean Pierre
|
|
|
21-10-2014, 02:12
|
#167
|
Registered User
Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 844
|
Re: OpenCPN Beta Version 3.3.2118 Released
Quote:
Originally Posted by boat_alexandra
Maybe we could just allow multiple fields selected, unless overlays are selected. In this case, it should deselect all fields which also have overlays. This is how the climatology plugin handles it anyway.
|
Yes It could be a solution. But we should do the same to avoid several number overlays to be mixed . And may be also for arrows ...
So in short multiple selection allowed only with different display type
Jean Pierre
|
|
|
21-10-2014, 02:21
|
#168
|
Registered User
Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,414
|
Re: OpenCPN Beta Version 3.3.2118 Released
Quote:
Originally Posted by Ptizef
Coming back to the particles problem on low powered Windows 8.1 with a touch screen :
I would add a fourth point :
when particles displayed, if I open option dialog and close it, the tool-bar never reappears until I close plugin or particles
some details :
point 2 : when I click on the red cross or Ctrl+Q, O intents to close, the slanted lines appear, then nothing more. O is still active the only mean to exit then is to close the plugin, or unclick "wind" to close particles. Then O effectively close, but sometime I get a crash
I tried in debug mode, but I got nothing clear but showing the entire O process was not stopped
point 3: I found a workaround but it's not satisfying, because I didn't understand why it's not working with particles whereas it works without and why when clicking on "OK" or "Cancel" button, the code after "ShowModal" is not executed
Obviously, some background tasks are broken by particles display on this machine. I tried to deactivate the timer, and all problems are gone, but of course particles are no longer displayed
Jean Pierre
|
Perhaps the timer does not have adequate resolution in windows?
GribOverlayFactory.cpp:1421
[code]
int time = sw.Time();
// run at 20fps but with at least some sleep
m_tParticleTimer.Start(wxMax(50 - time, 10), true);
[/quote]
Maybe you can try using wxDateTime::UNow() both before and after the render instead of the stopwatch, I doubt it would give a different result. Try changing the 10 to 20, 30, 40, 50 or higher until you find a suitable value.
I believe the main application needs to test the quitting flag and not refresh plugins.
|
|
|
21-10-2014, 05:30
|
#169
|
Registered User
Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 844
|
Re: OpenCPN Beta Version 3.3.2118 Released
Quote:
Originally Posted by boat_alexandra
Perhaps the timer does not have adequate resolution in windows?
|
Not windows. Another machine with Vista, it works well. It's specific to this one equiped of a CPU AMD A4-1200 with Radeon HD Graphics 8800
Quote:
Originally Posted by boat_alexandra
Maybe you can try using wxDateTime::UNow() both before and after the render instead of the stopwatch, I doubt it would give a different result. Try changing the 10 to 20, 30, 40, 50 or higher until you find a suitable value.
|
I have tried all this without any change .
The problem seems to be neither from the mean to start the timer neither its value but from the timer action itself
Quote:
Originally Posted by boat_alexandra
I believe the main application needs to test the quitting flag and not refresh plugins.
|
How to test that ?
Jean Pierre
|
|
|
21-10-2014, 06:41
|
#170
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,532
|
Re: OpenCPN Beta Version 3.3.2118 Released
Sean
Quote:
Maybe we could just allow multiple fields selected, unless overlays are selected. In this case, it should deselect all fields which also have overlays. This is how the climatology plugin handles it anyway.
|
Jean Pierre
Quote:
Yes It could be a solution. But we should do the same to avoid several number overlays to be mixed . And may be also for arrows ...
So in short multiple selection allowed only with different display type
|
Sean's idea sounded like it might be a good solution to me, but I did not understand Jean Pierre's point. --What about arrows?
Wouldn't we be able to have
. Wind (normal feathers and arrows)
. Wind Particles (pulsing display as normal)
. Air Pressure (as contour)
. Cape (overlay) ---> and by clicking on any other overlay that action turns off the previous overlay and turns on the one selected (exclusive overlay) while the three other non-overlay data types stay on? --Just an idea.
|
|
|
21-10-2014, 09:17
|
#171
|
Registered User
Join Date: May 2012
Location: Dahouet (Brittany)
Boat: BENETEAU
Posts: 491
|
Re: OpenCPN Beta Version 3.3.2118 Released
Hello,
I have downloaded the O 3.3.2118 version from the OpenCPN Download Page and i am using Zygrib but I can see the "particle" option.
Is there another O 3.3.2118 version ?, how, where can I get It ?
If it is another 2118 version, it would have been less confusing to give it a proper identification.
Serge
|
|
|
21-10-2014, 09:45
|
#172
|
Registered User
Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,198
|
Re: OpenCPN Beta Version 3.3.2118 Released
Serge...
It will be available for general public in the next beta, not in 2118.
Pavel
|
|
|
21-10-2014, 09:51
|
#173
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,532
|
Re: OpenCPN Beta Version 3.3.2118 Released
Serge, I will put it up on the Opncpn Beta website with the word "particle" in it. It will be alongside the previous 3.3.2118 beta.
I was waiting until some of the problems were sorted out a little, but I find this new data seems to work pretty well on windows, although others have discovered some issues. I will do it in about hour 2pm EST.
|
|
|
21-10-2014, 14:03
|
#174
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,532
|
Re: OpenCPN Beta Version 3.3.2118 Released
I updated the opencpn-3.3.2118-particle-setup-win32.exe on OpenCPN Beta File thingie and also simpilified the directories, with a 3.2.2 PI Win plugins, and then all others in 3.3.2118 PI Win folder.
|
|
|
21-10-2014, 20:05
|
#175
|
Marine Service Provider
Join Date: Mar 2008
Posts: 7,387
|
Re: OpenCPN Beta Version 3.3.2118 Released
jp...
Try github now. I have added code to limit GRIB particle rendering to 50% CPU duty cycle, which allows sufficient extra event loop time to process mouse wheel, OCPN exit yield, etc.
Works now on both of my super slow Atom machines, one W7, one W8.1 touch.
Thanks
Dave
|
|
|
21-10-2014, 20:14
|
#176
|
Marine Service Provider
Join Date: Mar 2008
Posts: 7,387
|
Re: OpenCPN Beta Version 3.3.2118 Released
Serge...
"If it is another 2118 version, it would have been less confusing to give it a proper identification."
This is the OCPN alpha sandbox. It is not ready for public Beta testing.
We make no promises about the condition of github between Beta Releases. It is often very broken.
However, we make this Alpha code available so that source builders can give us an early heads-up on serious problems before we commit to an actual wide scale Beta. Theoretically saves us a release cycle occasionally.
We monitor this thread closely.
Real Beta coming soon...
Thanks
Dave
|
|
|
21-10-2014, 23:02
|
#177
|
Registered User
Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 844
|
Re: OpenCPN Beta Version 3.3.2118 Released
Quote:
Originally Posted by rgleason
Sean
Sean's idea sounded like it might be a good solution to me, but I did not understand Jean Pierre's point. --What about arrows?
|
we agree
I just would like to pointed out that we might ovoid to display two time the same display type for two different parameters
JP
|
|
|
22-10-2014, 01:55
|
#178
|
Registered User
Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 844
|
Re: OpenCPN Beta Version 3.3.2118 Released
Hi Dave
Thanks
Quote:
Originally Posted by bdbcat
Try github now. I have added code to limit GRIB particle rendering to 50% CPU duty cycle, which allows sufficient extra event loop time to process mouse wheel, OCPN exit yield, etc.
|
Compiled and tested new git
as it is, all four problems are still here when particles displayed
I had an hazardous try with this :
line 1427:
m_tParticleTimer.Start(wxMax(50 - time, 2 * time), true);
and it works ! All problems are gone
Do I've got the worst, lowest machine available ?
Jean Pierre
|
|
|
22-10-2014, 04:31
|
#179
|
Registered User
Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,414
|
Re: OpenCPN Beta Version 3.3.2118 Released
Quote:
Originally Posted by Ptizef
Hi Dave
Thanks
Compiled and tested new git
as it is, all four problems are still here when particles displayed
I had an hazardous try with this :
line 1427:
m_tParticleTimer.Start(wxMax(50 - time, 2 * time), true);
and it works ! All problems are gone
Do I've got the worst, lowest machine available ?
Jean Pierre
|
This still does not fix the underlying issue.
Who is the say some other machine doesnt need 3* or 4* or... ?
In the future we are going to want plugins to be able to consume a lot of cpu if needed.
|
|
|
22-10-2014, 05:09
|
#180
|
Marine Service Provider
Join Date: Mar 2008
Posts: 7,387
|
Re: OpenCPN Beta Version 3.3.2118 Released
sean/jp.....
I agree that we have probably not got to the root cause of trouble here.
Fixing the "failure to shutdown" issue in the core is trivial, but again does not get to the real problem. Should not be necessary.
The part I do not understand is jp's last point, where the toolbar fails to re-surface after "options" dialog. I can reproduce that on Win8 by generating a very high frequency Refresh() request. Looking at the code, it appears that the Windows message queue must be getting scrambled by the flood of Refresh() messages coming from the PlugIn. The entire options dialog is actually running in the context of an event handler, normally an OK thing. Somehow, Windows seems to be aborting the handler on the exit of dialog ShowModal(), cleaning up its stack, and re-entering the main event loop. Any code in the options event handler after ShowModal() returns does not get executed.
jp also demonstrates that in the ShowModal() preferences dialog of the PlugIn.
This is very mysterious...More investigation needed....
Dave
|
|
|
|
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
Advertise Here
Recent Discussions |
|
|
|
|
|
|
|
|
|
|
|
|
Vendor Spotlight |
|
|
|
|