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 16-08-2017, 08:18   #1
Registered User

Join Date: Jan 2017
Posts: 45
OpenCPN (via openplotter) slow on RaspPi3

Hi,

First, I love low cost and functionality of OpenCPN on a Raspberry Pi. Maybe I am expecting too much speed-wise from OpenCPN on my RaspPi3 but I am looking for suggestions on how to speed it up. I have the version that is downloaded as part of the OpenPlotter package (reloaded a few days ago). I have AIS and GPS connected. I have NOAA RNC raster charts loaded. I have a largish (22 inch) HDMI monitor. My problem is the response time is slow (things like click and wait, charts don't appear quickly). Also, the AIS targets don't update very fast (more than a minute in some cases between updates). Is there anything I can do to speed things up? I would be greatfull for any suggestions (or pointers on where to look).

Thanks!

David
Foeboat is offline   Reply With Quote
Old 16-08-2017, 09:03   #2
Registered User

Join Date: Sep 2010
Location: Florida
Boat: Pearson 35
Posts: 62
Re: OpenCPN (via openplotter) slow on RaspPi3

While the Rpi3 has never been "snappy", it did have acceptable performance. Somehow, it has slowed down. I have seen memory usage gone through the roof for no discernible reason. Zooming works when it feels like it. For example if you use the onscreen + / - icons, it works normally for a few moments, then the increment becomes very small and erratic, for example scale 7400 (1.4x), 7450 (1.3x), 7450 (5.4x) 7500 (5.3x) Kernel version does not seem to matter - 4.9.41 or 4.9.35. On the Pi box, it does help with the initial scale values if you do a manual entry. ( I use 518 for a 24" screen) Otherwise I have to make adjustments. These issues do not show in Windows. I may do a build on my system to see if there was a problem with the libraries/compile. I have also had problems with O crashing, These systems were resuscitated by deleting all the entries for the dashboard except the position and setting the counter to 1 - so I don't know what item was causing the issue.
waterman480 is offline   Reply With Quote
Old 16-08-2017, 09:08   #3
Registered User

Join Date: Sep 2010
Location: Florida
Boat: Pearson 35
Posts: 62
Re: OpenCPN (via openplotter) slow on RaspPi3

Note that this may be a Pi issue, or a combination of the both Pi and O. I would not make it worse by trying GL drivers - both vc4-fkms-v3d and vc4-kms-v3d have issues that make it not worth the effort when you are trying to fix other problems.
waterman480 is offline   Reply With Quote
Old 16-08-2017, 09:13   #4
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN (via openplotter) slow on RaspPi3

Are you using Hardware accelerated graphics ?
OpenCPN->Options->Display->Advanced->UseAcceleratedGraphics

If you are using raster charts you might get better performance by enabling texture compression caching.
Options->Display->Advanced->UseAcceleratedGraphics->Options->TextureCompressionWithCaching
This will convert your raster charts into a format that is easier to feed to OpenGL. It will take more disk space. Also unless you run the RebuildTextureCache, the first time you access each chart it will need to be converted making it initially slower, building the cache can take a long time if you have a lot of charts.
__________________
Cheers,
JM
nahannivatsea.blogspot.ca
NahanniV is offline   Reply With Quote
Old 16-08-2017, 09:20   #5
Registered User

Join Date: Sep 2010
Location: Florida
Boat: Pearson 35
Posts: 62
Re: OpenCPN (via openplotter) slow on RaspPi3

If you install Htop and GKwellm you can get a visual of what is slowing down your system. If it is read_sensors_d.py - checkout the pyplilot subject (pg3) on openplotter.

Cheers,

Dave
waterman480 is offline   Reply With Quote
Old 16-08-2017, 10:45   #6
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,102
Re: OpenCPN (via openplotter) slow on RaspPi3

Quote:
Originally Posted by waterman480 View Post
If you install Htop and GKwellm you can get a visual of what is slowing down your system. If it is read_sensors_d.py - checkout the pyplilot subject (pg3) on openplotter.

Cheers,

Dave
You can see how fast the screen works with glxgears. You can get glxgears by installing mesa utils.

Here running at 145 FPS.

Latest kernel version and latest updates. OpenGL setting to on.

I'am using ENC charts.

Update the chart database.

Bram
verkerkbr is offline   Reply With Quote
Old 16-08-2017, 11:17   #7
Registered User

Join Date: Jun 2017
Posts: 81
Re: OpenCPN (via openplotter) slow on RaspPi3

Quote:
Originally Posted by verkerkbr View Post
You can see how fast the screen works with glxgears. You can get glxgears by installing mesa utils.

Here running at 145 FPS.

Latest kernel version and latest updates. OpenGL setting to on.

I'am using ENC charts.

Update the chart database.

Bram
Bram

I am getting about 60 fps with my RPi3, latest kernel and updates. I have OpenGL selected in OpenCPN. Are there any other settings you've changed?

Thanks
baltika_no_9 is offline   Reply With Quote
Old 16-08-2017, 11:21   #8
Registered User

Join Date: Jun 2017
Posts: 81
Re: OpenCPN (via openplotter) slow on RaspPi3

Quote:
Originally Posted by waterman480 View Post
....... it does help with the initial scale values if you do a manual entry....... .
Dave would you mind elaborating on this comment please? forgive me as I am not sure what setting you're referring to.

Many thanks
baltika_no_9 is offline   Reply With Quote
Old 16-08-2017, 11:26   #9
Registered User

Join Date: Jan 2017
Posts: 45
Re: OpenCPN (via openplotter) slow on RaspPi3

Sorry, I'm a bit new at this. To install mesa utilities, I think I do this:

sudo apt-get install mesa-utils

then what?
Foeboat is offline   Reply With Quote
Old 16-08-2017, 11:28   #10
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: OpenCPN (via openplotter) slow on RaspPi3

Quote:
Originally Posted by baltika_no_9 View Post
Bram

I am getting about 60 fps with my RPi3, latest kernel and updates. I have OpenGL selected in OpenCPN. Are there any other settings you've changed?

Thanks
Try
vblank_mode=0 glxgears

Though the hardware acceleration crashes Opencpn if I run raster kap google earth chart files on on the Pi. Quick with vector though.
conachair is offline   Reply With Quote
Old 16-08-2017, 12:07   #11
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,102
Re: OpenCPN (via openplotter) slow on RaspPi3

Quote:
Originally Posted by baltika_no_9 View Post
Bram

I am getting about 60 fps with my RPi3, latest kernel and updates. I have OpenGL selected in OpenCPN. Are there any other settings you've changed?

Thanks
Hello Baltika,

I'am not doing anything special:

OpenPlotter latest update to Alpha 0.14.4
Latest Raspian kernel version 4.9.41 (sudo rpi-update)
latest Raspian updates: (sudo apt update and then sudo apt upgrade)
using the HDMI port for the screen
In OpenPlotter VNC, Wifi, SignalK and AIS SDR dongle are on. (Here at my home)

Using Glxgears without parameters.

And of course a fast SD card 32 Gb HC 1 (10) read 80

OpenCPN 4.8.0 with OpenGL on.

With the VC4 driver things are going much faster. But the VC4 driver is still not useable. Locks-up under certain movements.

Can be switched on or off in: sudo rpi-config > advanced > Experimental driver

But it works for my at a acceptable speed.

Bram
verkerkbr is offline   Reply With Quote
Old 16-08-2017, 12:42   #12
Registered User

Join Date: Jun 2017
Posts: 81
Re: OpenCPN (via openplotter) slow on RaspPi3

Quote:
Originally Posted by verkerkbr View Post
Hello Baltika,

I'am not doing anything special:

OpenPlotter latest update to Alpha 0.14.4
Latest Raspian kernel version 4.9.41 (sudo rpi-update)
latest Raspian updates: (sudo apt update and then sudo apt upgrade)
using the HDMI port for the screen
In OpenPlotter VNC, Wifi, SignalK and AIS SDR dongle are on. (Here at my home)

Using Glxgears without parameters.

And of course a fast SD card 32 Gb HC 1 (10) read 80

OpenCPN 4.8.0 with OpenGL on.

With the VC4 driver things are going much faster. But the VC4 driver is still not useable. Locks-up under certain movements.

Can be switched on or off in: sudo rpi-config > advanced > Experimental driver

But it works for my at a acceptable speed.

Bram
Thanks for this Bram

My set up is almost identical but I don't have an AIS SDR dongle and I was at v 4.9.35 of the kernel. I've updated that to .41 but that has made no change, glxgears is still around 60fps.

I am driving my monitor from the HDMI port but via an HDMI to VGA adapter into the VGA port in the monitor. Maybe I should try driving it straight HDMI.

Edit
Nope, straight HDMI made no difference.

Thanks again, much appreciated
baltika_no_9 is offline   Reply With Quote
Old 16-08-2017, 13:44   #13
Registered User

Join Date: Apr 2015
Location: Norfolk, UK
Posts: 68
Re: OpenCPN (via openplotter) slow on RaspPi3

Quote:
Originally Posted by baltika_no_9 View Post
glxgears is still around 60fps.
glxgears must be run with the vblank prefix - i.e. "vblank_mode=0 glxgears"
Without this the speed will be limited by display blanking and will indeed never exceed 60fps.
duichan is offline   Reply With Quote
Old 16-08-2017, 13:44   #14
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: OpenCPN (via openplotter) slow on RaspPi3

What movements locks up the vc4 driver? Texture compression, I think it's broken on the vc4 driver. I tried to build and it's not working. So unfortunately the compressed texture cache is probably either not working or much slower.

Also, keep in mind, opencpn is still really slow. I know it could be faster in a lot of ways, and it's possible to make it completely seamless through time.
seandepagnier is offline   Reply With Quote
Old 16-08-2017, 14:55   #15
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN (via openplotter) slow on RaspPi3

Quote:
Originally Posted by boat_alexandra View Post
.... Texture compression, I think it's broken on the vc4 driver. I tried to build and it's not working. So unfortunately the compressed texture cache is probably either not working or much slower.
...
You would be a good person to report that problem to the VC4 developer.
You can speak his language.
__________________
Cheers,
JM
nahannivatsea.blogspot.ca
NahanniV 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
OpenPlotter project Sailoog Marine Electronics 1056 04-12-2019 23:41
unable to download OpenPlotter alteredoutlook OpenCPN 1 10-01-2017 03:46
OpenPlotter: SDR-AIS VHF transmit Contessa32 OpenCPN 1 21-05-2016 09:50
Using openplotter & opencpn on a 60 feet SAR boat? Flod Marine Electronics 2 28-04-2016 13:18
Engine Slow = Boat Slow Ex-Calif Propellers & Drive Systems 5 02-10-2007 11:25

Advertise Here


All times are GMT -7. The time now is 02:04.


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.