Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-07-2013, 14:44   #31
Registered User
 
CarinaPDX's Avatar

Join Date: Jan 2010
Location: Portland, Oregon, USA
Boat: 31' Cape George Cutter
Posts: 1,674
Re: Mac Performance Update

I'll test it. You can post or PM me how to get DMG.


Greg
__________________

__________________
CarinaPDX is offline   Reply With Quote
Old 09-07-2013, 15:02   #32
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,777
Re: Mac Performance Update

Using the latest wxWidgets 2.9.5 build you will see such messages in the OCPN log:
Warning: iCCP: known incorrect sRGB profile

That is because wx uses also a new libpng version now with better checks for *.png files. To fix that, first download and install srgb-icc profiles e.g. from sRGB profiles

Then convert all images of the OCPN sources to higher standards:
for x in *png; do convert $x -profile sRGB_v4_ICC_preference.icc $x; done

Gerhard
__________________

__________________
CarCode is offline   Reply With Quote
Old 09-07-2013, 22:06   #33
Registered User

Join Date: Jun 2011
Location: 27south
Boat: Easton 47
Posts: 65
Re: Mac Performance Update

Dave
just did a compile of 705, i already have wx 2.9.4 installed on this machine so compiled it against that.
Didn't make an Xcode project just used - "$cmake -DCMAKE_OSX_64=ON -DPREFIX=/Users/mo/tmp .."

Compiled with no errors but plenty warnings.

Then went the whole hog an created dmg, first time I've managed that !

can confirm same good speed performance when O is in action.

Nothing untoward in O's log except - "13:43:17 EST: Error: File '/Users/mo/Library/Preferences/navobj.xml.changes' couldn't be removed (error 2: No such file or directory)"

strangely as a bonus all text in the Options windows are back to normal size.

good stuff

mo
__________________
Icnoships is offline   Reply With Quote
Old 10-07-2013, 03:05   #34
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,777
Re: Mac Performance Update

Quote:
Originally Posted by Icnoships View Post
Nothing untoward in O's log except - "13:43:17 EST: Error: File '/Users/mo/Library/Preferences/navobj.xml.changes' couldn't be removed (error 2: No such file or directory)"
mo
There is a missing file check in the OCPN code, something like this:

if( ::wxFileExists( m_sNavObjSetChangesFile ) ) <-- This line is missing
wxRemoveFile( m_sNavObjSetChangesFile );

Gerhard
__________________
CarCode is offline   Reply With Quote
Old 10-07-2013, 21:15   #35
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: Mac Performance Update

Hello Mac testers....

Here is another quick check of our build process.

https://www.dropbox.com/s/c5ainewgut...PN_3.3.710.dmg

Here is the build spec:

Built on Lion 10.7
Target minimum system and SDK linkage is 10.6 (Snow Leopard)
wxWidgets version is 2.9.4(Cocoa)

We have two questions: (Tight focus, please...)

1. Does it run on Snow Leopard? (Hint: it does on my SL system.)

2. On SL, Lion and Mountain Lion, is the performance roughly the same as 3.3.705 (i.e. the latest Mac test, which is significantly faster than 3.2.2)? (Hint: it is on my Lion system)

For those interested, it turns out that wxWidgets 2.9.5 will not load on Snow Leopard, probably due to a system function call, missing in Snow Leopard, which was inadvertently added to wxWidgets sometime after 2.9.4 was released. 2.9.5 has some improvements, none of which are really important to us since we no longer depend on the native wxRegion class in the Mac build. We can live with 2.9.4 (Cocoa).

If we get affirmative answers to the two questions, then this will be our next build target environment for Mac.

Thanks
Dave
__________________
bdbcat is offline   Reply With Quote
Old 11-07-2013, 02:01   #36
Registered User
 
CarinaPDX's Avatar

Join Date: Jan 2010
Location: Portland, Oregon, USA
Boat: 31' Cape George Cutter
Posts: 1,674
Re: Mac Performance Update

Hi Dave-

I just downloaded and installed on Snow Leopard, 10.6.8. It seems to work just fine, with ENC, RNC, and CM93 charts, GPS attached. I didn't have 3.3.705 installed so I can't compare, but I can attest that it is noticeably faster than earlier versions. Actually, a lot faster. Good work. (2006 MBP C2D 2.33GHz)

One point: I didn't know what "Chart Information Objects" was (vector chart tab) so I gave it a try. It hammered both cores and pegged the cooling fans with the spinning beach ball, but did end after a minute or two. Then the chart was covered with horizontal red ovals with "U" inside. Unchecked and back to normal. 'Not sure what that was about.

Greg
__________________
CarinaPDX is offline   Reply With Quote
Old 11-07-2013, 02:22   #37
Registered User

Join Date: Jun 2011
Location: 27south
Boat: Easton 47
Posts: 65
Re: Mac Performance Update

Dave
just tested 710 on OS 10.7.5 and all appears to be the same ..no noticeable difference in performance to 705. All good.

Dont Have snow leo so cant comment.

regards

mo
__________________
Icnoships is offline   Reply With Quote
Old 11-07-2013, 02:39   #38
Registered User
 
Capt Rottnest's Avatar

Join Date: Nov 2012
Location: FN QLD
Boat: Junk rig Schooner
Posts: 209
Re: Mac Performance Update

On my MacbookPro (2.6GHz C2D) with Mountain Lion this version 3.3.710 runs just as quick as 3.3.705. Tens times faster that 3.2.2
It doesn't crash, but the inability to draw new routes that remain uncorrupted is still there.
__________________
Capt Rottnest is offline   Reply With Quote
Old 11-07-2013, 16:34   #39
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,777
Re: Mac Performance Update

I found another bug:
Menu IDs must be 16 bits. So this enum in chart1.cpp is wrong:

enum {
ID_PIANO_DISABLE_QUILT_CHART = 50000, ID_PIANO_ENABLE_QUILT_CHART
};

int16 have a range = -32,768 to 32,767

Gerhard
__________________
CarCode is offline   Reply With Quote
Old 11-07-2013, 17:03   #40
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,018
Re: Mac Performance Update

Gerhard...
Where is it declared as int16, please? It's a wxWindowIdRef I would say.

Pavel
__________________
nohal is offline   Reply With Quote
Old 11-07-2013, 20:18   #41
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: Mac Performance Update

Capt Rottnest...

Gary, I cannot reproduce any problem with route point scrambling on 3.3.710.

Lets try a simple test:

1. Run O, and delete all routes. Close and restart.
2. Make a simple 5 point route, as you showed in earlier post. Close OCPN.
3. Upload to this thread a copy of /Users/{name}/Library/Preferences/navobj.xml.

4. Run O again, and confirm that the simple route is scrambled.

5. Show the Route Properties dialog for the route, and take a screen shot, post it here.

It looks to me as though some of the waypoints in the route are being set to lat/lon = 0,0. Is this the case?

Thanks
Dave
__________________
bdbcat is offline   Reply With Quote
Old 12-07-2013, 00:03   #42
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,777
Re: Mac Performance Update

Quote:
Originally Posted by nohal View Post
Gerhard...
Where is it declared as int16, please? It's a wxWindowIdRef I would say.

Pavel
Pavel,
you always don't understand my english I guess. When I write Menu IDs I mean Menu IDs and not Window IDs.

Look at wxMenuItemBase() in /common/menucmn.cpp
You will see:
Quote:
// ids are limited to 16 bits under MSW so portable code shouldn't
// use ids outside of this range (negative ids generated by wx are
// fine though)
wxASSERT_MSG( (itemid >= 0 && itemid < SHRT_MAX) ||
(itemid >= wxID_AUTO_LOWEST && itemid <= wxID_AUTO_HIGHEST),
wxS("invalid itemid value") );
Gerhard
__________________
CarCode is offline   Reply With Quote
Old 12-07-2013, 06:08   #43
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,018
Re: Mac Performance Update

Gerhard...
I understand your English very well... I just did not understand the int16 thing when it's not used in the WX code a single time except in the embedded libtiff library. If you post the real cause of the porblem right away next time, I will certainly not ask.

Pavel
__________________
nohal is offline   Reply With Quote
Old 12-07-2013, 06:40   #44
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,777
Re: Mac Performance Update

Pavel,
your questions are annoying. I never talk about libtiff library nor wxWindow IDs but Menu IDs.
Please stop your questions and read instead...
Thank you.

Gerhard
__________________
CarCode is offline   Reply With Quote
Old 12-07-2013, 07:01   #45
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,018
Re: Mac Performance Update

Gerhard...
As you sure have seen during your endaevour through the code of both OpenCPN and WX, the WX menu ID is a WindowID and it is an integer (normal integer, 4 bytes). If you find an assertion like this, please save us the lecture about 16bit integers and post what you posted in #42 next time, please, really.
Note that this is not a question, this is an appeal on what I hope is sanity.

Thank you for thinking about what I wrote, and I mean it

Pavel
__________________

__________________
nohal is offline   Reply With Quote
Reply

Thread Tools
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




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 13:35.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.