Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 25-06-2014, 15:46   #16
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,774
Re: OpenCPN Beta Version 3.3.1824 Released

Implementing also the latest commits, newer than 3.3.1824, from github I got for the first time a CPU load of 0 percent when OpenCPN is idling. Each half a minute CPU usage goes up to 10 percent for a short time, I think when updating the AIS list. App Nap is activated probably because I compile with Xcode.

Quilting and OpenGL activated.

OpenGL-> Renderer String: NVIDIA GeForce 9400M OpenGL Engine
OpenGL-> Texture rectangle format: de1
OpenGL-> Using Framebuffer Objects
OpenGL-> Using FBO Stencil buffer
OpenGL-> Using Stencil buffer clipping
OpenGL-> Not Using compression

All OpenGL options disabled.
14 plugins loaded.
GPS and AIS running with about 100 AIS targets.
Raster and cm93 charts open.

As to be supposed the OpenCPN version 3.3.1824 from opencpn.org uses a little bit more CPU and don't use App Nap.

After all this version seems to be OK for Mac OS X.

Gerhard
Attached Thumbnails
Click image for larger version

Name:	CPU-OCPN.png
Views:	85
Size:	40.7 KB
ID:	83766  
__________________

__________________
CarCode is offline   Reply With Quote
Old 25-06-2014, 16:18   #17
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,356
Re: OpenCPN Beta Version 3.3.1824 Released

... the lines from your log that are meaningful are:

Code:
10:06:56 AM: OpenGL-> Renderer String: Intel(R) HD Graphics Family 10:06:56 AM: OpenGL-> Detected Intel renderer, disabling stencil buffer 10:06:56 AM: OpenGL-> Texture rectangle format: de1 10:06:56 AM: OpenGL-> Using Framebuffer Objects 10:06:56 AM: OpenGL-> FBO Stencil buffer unavailable 10:06:56 AM: OpenGL-> Using Depth buffer clipping 10:06:56 AM: OpenGL-> Using s3tc dxt1 compression 10:06:56 AM: OpenGL-> Compressed tile size: 128kb (6:1)
I am confused now. I have two graphics boards:
- Intel HD Graphics
- NVIDIA Geforce 540M
The extra board uses addl amps I found out.
I thought this laptop was setup to use the NVIDIA exclusively.
I go the the new NVIDIA Control Panel and the previous exclusive setup appears to be unavailable, so perhaps it is using Intel HD Graphics.
I think the NVIDIA would be much faster however. I wonder where I change those settings in Win7 now?
--It must be that Opencpn is correct it is using Intel HD Graphics....
How can I confirm this?
__________________

__________________
rgleason is offline   Reply With Quote
Old 25-06-2014, 16:46   #18
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,356
Re: OpenCPN Beta Version 3.3.1824 Released

Ok, now I have this figured out.
--Right click on display screen and select NVIDA Graphics Control
--Then under 3d Settings > Manage 3d Settings make an instance for Opencpn3.3.1824.exe to use the NVIDIA GT540M.
--Start v3.3.1824
--Logfile

Code:
6:27:23 PM: Initializing Chart C:\Data-Dart\BSB_ROOT\02Region\13003\13003_1.KAP
6:27:24 PM: OpenGL-> Renderer String: GeForce GT 540M/PCIe/SSE2
6:27:24 PM: OpenGL-> Texture rectangle format: de1
6:27:24 PM: OpenGL-> Using Framebuffer Objects
6:27:24 PM: OpenGL-> Using FBO Stencil buffer
6:27:24 PM: OpenGL-> Using Stencil buffer clipping
6:27:24 PM: OpenGL-> Using s3tc dxt1 compression
6:27:24 PM: OpenGL-> Compressed tile size: 128kb (6:1)
6:27:39 PM: LOGBOOK:  2014-06-25 22:27:39 UTC  DR Lat   52.21280 Lon  -34.60850
6:27:56 PM: Initializing Chart C:\Data-Dart\ENC-ROOT\02Region\US2EC03M\US2EC03M.000
6:27:58 PM: Initializing Chart C:\Data-Dart\ENC-ROOT\02Region\US2EC04M\US2EC04M.000
Everything works faster and smoother with all Opengl checks selected and Smooth Zoom. There is no senc processing when zooming in now because it is faster. Still has those color change anomalys using BSB

See attached pics and logfile. Geforce adapter is faster and better.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2014-06-25 18.27.37.jpg
Views:	94
Size:	183.1 KB
ID:	83768   Click image for larger version

Name:	Screenshot 2014-06-25 18.26.11.png
Views:	81
Size:	92.4 KB
ID:	83769  

Attached Files
File Type: doc logfile2.doc (57.4 KB, 17 views)
__________________
rgleason is offline   Reply With Quote
Old 25-06-2014, 17:55   #19
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,883
Re: OpenCPN Beta Version 3.3.1824 Released

SailorF54...

Just so I know the situation:
1. what is your "low end" system?
2. Do you really see 3-10 second lag in pan or zoom operations?
3. Does the dusplay scale make much difference? That is, is it very much slower when you are zoomed far out?

Any other comments (from anyone) regarding texture caching and performance?
Thanks
Dave
__________________
bdbcat is offline   Reply With Quote
Old 25-06-2014, 18:34   #20
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,356
Re: OpenCPN Beta Version 3.3.1824 Released

Atttached are two output files using MSVC for Win:
Output from cmake --build . 1 Error - cannot compile debug.
Output from cmake --build . --config release a number of errors.
__________________
rgleason is offline   Reply With Quote
Old 25-06-2014, 19:07   #21
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,356
Re: OpenCPN Beta Version 3.3.1824 Released

Just to pursue the issue that the most recent version of weather_routing_pi.dll version 12 does not run, and hangs up opencpn 3.3.1824, what I did was git clone the most current version of 3.3.1824 (with today's changes), release compiled and cpack and installed. Then ran wx_rte version 12 and
weather_routing_win32_pi110_v011_ov331715_pi.dll (actually version 10)

Version 12 does not work and hangs opencpn and version 10 does work. I wonder why?
__________________
rgleason is offline   Reply With Quote
Old 25-06-2014, 19:14   #22
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,883
Re: OpenCPN Beta Version 3.3.1824 Released

RGLeason...

1. The release build looks OK, with some benign warnings. Should be fixed, though.

2. Debug build:
Please try to update CMakeLists.txt, Line 799 as follows:

Code:
  set_property(TARGET TEXCMP PROPERTY COMPILE_FLAGS "/arch:SSE2 -DSQUISH_USE_SSE=2")
Note that we drop "/O2".

If this works, I will update github.

Thanks
Dave
__________________
bdbcat is offline   Reply With Quote
Old 25-06-2014, 19:35   #23
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,356
Re: OpenCPN Beta Version 3.3.1824 Released

Found the line to be on 791 I believe.

Code:
 # always use optimizations for the texture compression which is much faster
  # not sure what to use for visual studio, but optimizations should be enabled here
  IF ( NOT MSVC )
      # try to use sse on x86 based systems
      IF ( ARCH MATCHES "i386" OR ARCH MATCHES "amd64" OR ARCH MATCHES "x86_64")
        # using sse which makes the compression run about 50% faster
        message (STATUS "Compiling texture compression library with sse support")
Line 791-        set_property(TARGET TEXCMP PROPERTY COMPILE_FLAGS "-O3 -msse2 -DSQUISH_USE_SSE=2")
      ELSE ()
        # use standard optimizations for other architectures
        set_property(TARGET TEXCMP PROPERTY COMPILE_FLAGS "-O3")
      ENDIF ()
  ELSE (NOT MSVC)
        # try to use sse on x86 based systems
      IF ( ARCH MATCHES "i386" OR ARCH MATCHES "amd64" OR ARCH MATCHES "x86_64")
        # using sse which makes the compression run about 50% faster
        message (STATUS "Compiling texture compression library with sse support")
        set_property(TARGET TEXCMP PROPERTY COMPILE_FLAGS "/O2 /arch:SSE2 -DSQUISH_USE_SSE=2")
      ENDIF ()
  ENDIF (NOT MSVC)
Replaced that line and ran cmake --build .

Code:
Done Building Project "C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\ALL_BUILD.vcxproj" (default targets) -- FAILED.
Build FAILED.

"C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\ALL_BUILD.vcxproj" (default target) (1) ->"C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\TEXCMP.vcxproj" (default target) (7) ->(ClCompile target) ->
  cl : Command line error D8016: '/O2' and '/RTC1' command-line options are incompatible [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\TEXCMP.vcxproj]
    0 Warning(s)
    1 Error(s)
C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build>

Code:
  set_property(TARGET TEXCMP PROPERTY COMPILE_FLAGS "/arch:SSE2 -DSQUISH_USE_SSE=2")
Sorry, I guess that was not it.
__________________
rgleason is offline   Reply With Quote
Old 25-06-2014, 19:51   #24
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: OpenCPN Beta Version 3.3.1824 Released

Rick...
If you changed the Line marked with "Line 791 -" in your post, then it is not it - the right one is a few lines down bellow (Looks pretty similar, but really contains the slashes as Dave posted).

Pavel
__________________
nohal is offline   Reply With Quote
Old 25-06-2014, 20:33   #25
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,356
Re: OpenCPN Beta Version 3.3.1824 Released

Changed line 791 back and then changed line 794

Code:
IF ( NOT MSVC )
      # try to use sse on x86 based systems
      IF ( ARCH MATCHES "i386" OR ARCH MATCHES "amd64" OR ARCH MATCHES "x86_64")
        # using sse which makes the compression run about 50% faster
        message (STATUS "Compiling texture compression library with sse support")
        set_property(TARGET TEXCMP PROPERTY COMPILE_FLAGS "-O3 -msse2 -DSQUISH_USE_SSE=2")
      ELSE ()
        # use standard optimizations for other architectures
        set_property(TARGET TEXCMP PROPERTY COMPILE_FLAGS "/arch:SSE2 -DSQUISH_USE_SSE=2")
      ENDIF ()
  ELSE (NOT MSVC)
        # try to use sse on x86 based systems
      IF ( ARCH MATCHES "i386" OR ARCH MATCHES "amd64" OR ARCH MATCHES "x86_64")
        # using sse which makes the compression run about 50% faster
        message (STATUS "Compiling texture compression library with sse support")
        set_property(TARGET TEXCMP PROPERTY COMPILE_FLAGS "/O2 /arch:SSE2 -DSQUISH_USE_SSE=2")
      ENDIF ()
  ENDIF (NOT MSVC)
When compiled I get the same error again.

Code:
plugins\grib_pi\grib-i18n.vcxproj" (13) on node 1 (default targets).
InitializeBuildStatus:
  Creating "Win32\Debug\grib-i18n\grib-i18n.unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:   grib_pi-i18n: Done.
FinalizeBuildStatus:
  Deleting file "Win32\Debug\grib-i18n\grib-i18n.unsuccessfulbuild".
  Touching "Win32\Debug\grib-i18n\grib-i18n.lastbuildstate".
Done Building Project "C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins
\grib_pi\grib-i18n.vcxproj" (default targets).
Done Building Project "C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins
\grib_pi\grib_pi.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\ALL_BUI
LD.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\TEXCMP.vcxproj" (default target) (7) ->
(ClCompile target) ->
  cl : Command line error D8016: '/O2' and '/RTC1' command-line options are incompatible [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\TEXCMP.vcxproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:01.20

C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build>
Darn Now I see the problem, the line is further down.
Later --- Actually these main conditional if statements show (Not MSVC) and I AM using MSVC!
That is the problem there is no condition which supports MSVC?
__________________
rgleason is offline   Reply With Quote
Old 25-06-2014, 20:44   #26
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: OpenCPN Beta Version 3.3.1824 Released

Rick...
A couple more lines down, you are still changing the Linux/Mac build options which then of course don't use... You have to remove the "/O2" that already is there...

Pavel
__________________
nohal is offline   Reply With Quote
Old 25-06-2014, 20:46   #27
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,883
Re: OpenCPN Beta Version 3.3.1824 Released

Rick...

IF (NOT MSVC)
.
.
.
ELSE (NOT MSVC)
# in other words, this is MSVC

ENDIF (NOT MSVC)

So, change line 799. Trust me....

Dave
__________________
bdbcat is offline   Reply With Quote
Old 25-06-2014, 21:10   #28
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,356
Re: OpenCPN Beta Version 3.3.1824 Released

Sorry, I did a pretty good job of butchering that, seems to be line 801 for me. Still don't get the "not msvc" because I am using it, and it is with i386, so I definitely do not get the big pic, but thats ok.

Code:
ELSE (NOT MSVC)
        # try to use sse on x86 based systems
      IF ( ARCH MATCHES "i386" OR ARCH MATCHES "amd64" OR ARCH MATCHES "x86_64")
        # using sse which makes the compression run about 50% faster
        message (STATUS "Compiling texture compression library with sse support")
        set_property(TARGET TEXCMP PROPERTY COMPILE_FLAGS "/arch:SSE2 -DSQUISH_USE_SSE=2")
      ENDIF ()
  ENDIF (NOT MSVC)
It worked :} Thanks.
Code:
"C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\ALL_BUILD.vcxproj" (default t
arget) (1) ->
"C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins\grib_pi\grib_pi.vcxpr
oj" (default target) (12) ->
  c:\data-dart\up-soft\navigation\opencpn-git\plugins\grib_pi\src\smapi.cpp(217)
: warning C4715: 'wxMapiSession::Logon' : not all control paths return a value [
C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins\grib_pi\grib_pi.vcxpro
j]

    28 Warning(s)
    0 Error(s)
__________________
rgleason is offline   Reply With Quote
Old 25-06-2014, 23:23   #29
Senior Cruiser
 
sailorF54's Avatar

Cruisers Forum Supporter

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 829
Re: OpenCPN Beta Version 3.3.1824 Released

Quote:
Originally Posted by bdbcat View Post
SailorF54...

Just so I know the situation:
1. what is your "low end" system?
2. Do you really see 3-10 second lag in pan or zoom operations?
3. Does the dusplay scale make much difference? That is, is it very much slower when you are zoomed far out?

Any other comments (from anyone) regarding texture caching and performance?
Thanks
Dave
1 - AMD Athlon X2 Dual-Core QL-62, 4GB, ATI Radeon HD 3200
2 - When I pan to a 'new' kap chart in quilting mode (Use Accelerated panning) the computer will 'freeze' for a few seconds (hourglass) while (I presume) creating the compressed chart (Use Accelerated panning on, Texture Compression on, Texture Memory Size 102 MB)
When accessing the same chart zone again, zooming and panning is very smooth and fast
This does not depend on the zoom level. As soon as I pan to a 'new' chart (area) (one I have never displayed before), I get the hourglass.
Hope that makes sense !
3 - While displaying an already seen area, there is a slight delay when I pan rapidly. Does not seem to depend much on the zoom level, but on the number of charts that is in the status bar...
__________________
sailorF54 is offline   Reply With Quote
Old 25-06-2014, 23:30   #30
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,294
Re: OpenCPN Beta Version 3.3.1824 Released

Hello Dave,

There are a few hours, I made ​​some tests O 331 824. First a quick test only with cards visitMyHarbour. Then I allowed all OpenGL options and I set to 32MB cache size. I closed O. I opened O again ... Crash immediate. Now every time, O crash each start attempt.

I sent two crash report.

B.R. Gilletarom.
__________________

__________________
Gilletarom is offline   Reply With Quote
Reply

Tags
enc, lease, opencpn

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN Beta Version 3.1.814 Released bdbcat OpenCPN 185 14-09-2012 08:43
OpenCPN Beta Version 3.1.802 Released bdbcat OpenCPN 158 14-08-2012 11:07
OpenCPN Beta Version 3.1.714 Released bdbcat OpenCPN 91 01-08-2012 18:08



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 08:20.


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.