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 10-12-2016, 09:45   #196
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,122
Re: OpenCPN on Raspberry PI2

You can also do:

sudo apt dist-upgrade

This gives a distribution update with Wayland.

OpenGL in OpenCPN can be switched to on.

This gives even more fast charts movements in OpenCPN
verkerkbr is offline   Reply With Quote
Old 10-12-2016, 13:20   #197
Registered User

Join Date: Sep 2010
Posts: 153
Re: OpenCPN on Raspberry PI2

Quote:
Originally Posted by verkerkbr View Post
You can also do:

sudo apt dist-upgrade

This gives a distribution update with Wayland.

OpenGL in OpenCPN can be switched to on.

This gives even more fast charts movements in OpenCPN
Hi,

I try to test the OpenGL speed on RPI3 but I can reach only about 100FPS.
And I need to perform a 'sudo apt dist-upgrade'
to move from 20FPS to 100FPS see my notes:


OpenPlotter 0.9.0 alfa:
=======================

pi@openplotter:~ $ uname -a
Linux openplotter 4.4.34-v7+ #930 SMP Wed Nov 23 15:20:41 GMT 2016 armv7l
GNU/Linux

sudo apt-get install mesa-utils

Fresh install:
=============
pi@openplotter:~ $ glxgears
38 frames in 5.0 seconds = 7.550 FPS
98 frames in 5.0 seconds = 19.527 FPS
101 frames in 5.0 seconds = 20.042 FPS
108 frames in 5.0 seconds = 21.506 FPS
107 frames in 5.0 seconds = 21.316 FPS

sudo apt-get update
sudo apt-get upgrade
sudo reboot

pi@openplotter:~ $ glxgears
28 frames in 5.0 seconds = 5.572 FPS
105 frames in 5.0 seconds = 20.820 FPS
108 frames in 5.1 seconds = 21.353 FPS
99 frames in 5.0 seconds = 19.795 FPS
114 frames in 5.0 seconds = 22.664 FPS

sudo rpi-update
sudo reboot

pi@openplotter:~ $ uname -a
Linux openplotter 4.4.37-v7+ #936 SMP Fri Dec 9 16:56:49 GMT 2016 armv7l
GNU/Linux

pi@openplotter:~ $ glxgears
4 frames in 5.0 seconds = 0.797 FPS
102 frames in 5.0 seconds = 20.346 FPS
110 frames in 5.0 seconds = 21.919 FPS
101 frames in 5.0 seconds = 20.027 FPS
107 frames in 5.0 seconds = 21.220 FPS

sudo apt-get dist-upgrade
sudo reboot

pi@openplotter:~ $ glxgears
289 frames in 5.0 seconds = 57.763 FPS
485 frames in 5.0 seconds = 96.999 FPS:
468 frames in 5.0 seconds = 93.436 FPS
516 frames in 5.0 seconds = 103.144 FPS
476 frames in 5.0 seconds = 95.164 FPS

GPU Memory set from 64MB to 256M:
sudo reboot

pi@openplotter:~ $ glxgears
367 frames in 5.0 seconds = 73.331 FPS
465 frames in 5.0 seconds = 92.858 FPS
489 frames in 5.0 seconds = 97.618 FPS
459 frames in 5.0 seconds = 91.638 FPS
508 frames in 5.0 seconds = 101.506 FPS


Kubek
kubek is offline   Reply With Quote
Old 10-12-2016, 13:38   #198
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again, currently in Fiji
Boat: Sailboat
Posts: 1,470
Re: OpenCPN on Raspberry PI2

Quote:
Originally Posted by verkerkbr View Post
You can also do:

sudo apt dist-upgrade

This gives a distribution update with Wayland.

OpenGL in OpenCPN can be switched to on.

This gives even more fast charts movements in OpenCPN
Thanks! I just updated to Wayland. I am getting glxgears 100-150fps, depending on what other apps are running, so this seems to be a SW renderer, not a HW accelerated opengl? Can someone with more knowledge confirm?

Still, opencpn seems to work well with opengl=on.

Dirk
LeaseOnLife is offline   Reply With Quote
Old 10-12-2016, 13:41   #199
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,122
Re: OpenCPN on Raspberry PI2

Quote:
Originally Posted by kubek View Post
Hi,

I try to test the OpenGL speed on RPI3 but I can reach only about 100FPS.
And I need to perform a 'sudo apt dist-upgrade'
to move from 20FPS to 100FPS see my notes:


OpenPlotter 0.9.0 alfa:
=======================

pi@openplotter:~ $ uname -a
Linux openplotter 4.4.34-v7+ #930 SMP Wed Nov 23 15:20:41 GMT 2016 armv7l
GNU/Linux

sudo apt-get install mesa-utils

Fresh install:
=============
pi@openplotter:~ $ glxgears
38 frames in 5.0 seconds = 7.550 FPS
98 frames in 5.0 seconds = 19.527 FPS
101 frames in 5.0 seconds = 20.042 FPS
108 frames in 5.0 seconds = 21.506 FPS
107 frames in 5.0 seconds = 21.316 FPS

sudo apt-get update
sudo apt-get upgrade
sudo reboot

pi@openplotter:~ $ glxgears
28 frames in 5.0 seconds = 5.572 FPS
105 frames in 5.0 seconds = 20.820 FPS
108 frames in 5.1 seconds = 21.353 FPS
99 frames in 5.0 seconds = 19.795 FPS
114 frames in 5.0 seconds = 22.664 FPS

sudo rpi-update
sudo reboot

pi@openplotter:~ $ uname -a
Linux openplotter 4.4.37-v7+ #936 SMP Fri Dec 9 16:56:49 GMT 2016 armv7l
GNU/Linux

pi@openplotter:~ $ glxgears
4 frames in 5.0 seconds = 0.797 FPS
102 frames in 5.0 seconds = 20.346 FPS
110 frames in 5.0 seconds = 21.919 FPS
101 frames in 5.0 seconds = 20.027 FPS
107 frames in 5.0 seconds = 21.220 FPS

sudo apt-get dist-upgrade
sudo reboot

pi@openplotter:~ $ glxgears
289 frames in 5.0 seconds = 57.763 FPS
485 frames in 5.0 seconds = 96.999 FPS:
468 frames in 5.0 seconds = 93.436 FPS
516 frames in 5.0 seconds = 103.144 FPS
476 frames in 5.0 seconds = 95.164 FPS

GPU Memory set from 64MB to 256M:
sudo reboot

pi@openplotter:~ $ glxgears
367 frames in 5.0 seconds = 73.331 FPS
465 frames in 5.0 seconds = 92.858 FPS
489 frames in 5.0 seconds = 97.618 FPS
459 frames in 5.0 seconds = 91.638 FPS
508 frames in 5.0 seconds = 101.506 FPS


Kubek
Allo Kubek,

this is what I get with glxgears -info

With OpenPlotter I.O running at the background

VisualID 420, 0x1a4
541 frames in 5.0 seconds = 108.145 FPS
710 frames in 5.0 seconds = 141.993 FPS
714 frames in 5.0 seconds = 142.718 FPS
722 frames in 5.0 seconds = 144.191 FPS
692 frames in 5.0 seconds = 138.398 FPS
717 frames in 5.0 seconds = 143.348 FPS
679 frames in 5.0 seconds = 135.713 FPS
743 frames in 5.0 seconds = 148.489 FPS
706 frames in 5.0 seconds = 141.142 FPS
716 frames in 5.0 seconds = 142.970 FPS
712 frames in 5.0 seconds = 142.374 FPS
706 frames in 5.0 seconds = 141.068 FPS
739 frames in 5.0 seconds = 147.761 FPS
703 frames in 5.0 seconds = 140.461 FPS
694 frames in 5.0 seconds = 138.630 FPS
667 frames in 5.0 seconds = 133.255 FPS
650 frames in 5.0 seconds = 129.846 FPS
681 frames in 5.0 seconds = 136.037 FPS

memory stands at 64

Regards,

Bram

pi@openplotter:~ $
verkerkbr is offline   Reply With Quote
Old 10-12-2016, 13:54   #200
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,122
Re: OpenCPN on Raspberry PI2

Quote:
Originally Posted by LeaseOnLife View Post
Thanks! I just updated to Wayland. I am getting glxgears 100-150fps, depending on what other apps are running, so this seems to be a SW renderer, not a HW accelerated opengl? Can someone with more knowledge confirm?

Still, opencpn seems to work well with opengl=on.

Dirk
Dirk,

open logfile info:

OpenGL rendering string Gallium 0.4 on llvmpipe (LLVM 3.9 128 bits)
OpenGl version reported 3.0 Mesa 13.0.0

and more OpenGL settings.

Not yet tried the combination with the VC4 driver.

With the OpenGL setting to on it works very well.

VC4 worked also very well, but gave problems with zooming out. Then the image was scattered.

Anyway this without the VC4 driver, is a big improvement.

Regards,

Bram

Just tried the OpenGL VC4 driver. If you click on the setting in raspi-config, additional software is installed.

It works in OpenCPN but locks up. Glxgears reported errors with libGL and Mesa and also locks up.
verkerkbr is offline   Reply With Quote
Old 13-12-2016, 13:44   #201
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 244
Re: OpenCPN on Raspberry PI2

Hi,

after doing a apt-get update and apt-get dist-upgrade I can run glxgears with round about 90 to 105 fps. OC with my rastercharts works faster with OpenGL = on then before the upgrade and with OpenGL=off. No Limits when zooming or panning it just works.

Now I tried the vc4 driver but I made a fault and the pi crashes when booting.

Now Iīm just putting the backup to the sd-card and then starting again.

Regards

Andreas
Andreas29 is offline   Reply With Quote
Old 14-12-2016, 23:10   #202
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 244
Re: OpenCPN on Raspberry PI2

Hi,

after playing around with the pi2 and the grafic-drivers I can say this:

After doing a apt-get update and apt-get dist-upgrade (and reboot) itīs possible to get 70 to 105 fps with glxgears without enabling the experimental pi grafic driver. Glxinfo said that there is hw-grafic acceleration.
When switching OpenGL on in OC it works without any crashes. Zooming and panning without probs (tested with my rastercharts up to 50mb). Trying different Settings for the video ram, 64 or 128 mb seems to be the best.
Using OpenGL in OC makes it working much smoothier.

When enabling the experimental grafic driver (vc4) then itīs possible to get much more fps in OC but it still crashes when zooming out to much.

Kernel version from my pi ist 4.4.37.

Regards

Andreas
Andreas29 is offline   Reply With Quote
Old 15-12-2016, 01:08   #203
Registered User

Join Date: Sep 2010
Posts: 153
Re: OpenCPN on Raspberry PI2

Quote:
Originally Posted by kubek View Post
Hi,

I try to test the OpenGL speed on RPI3 but I can reach only about 100FPS.
And I need to perform a 'sudo apt dist-upgrade'
to move from 20FPS to 100FPS see my notes:


OpenPlotter 0.9.0 alfa:
=======================

pi@openplotter:~ $ uname -a
Linux openplotter 4.4.34-v7+ #930 SMP Wed Nov 23 15:20:41 GMT 2016 armv7l
GNU/Linux

sudo apt-get install mesa-utils

Fresh install:
=============
pi@openplotter:~ $ glxgears
38 frames in 5.0 seconds = 7.550 FPS
98 frames in 5.0 seconds = 19.527 FPS
101 frames in 5.0 seconds = 20.042 FPS
108 frames in 5.0 seconds = 21.506 FPS
107 frames in 5.0 seconds = 21.316 FPS

sudo apt-get update
sudo apt-get upgrade
sudo reboot

pi@openplotter:~ $ glxgears
28 frames in 5.0 seconds = 5.572 FPS
105 frames in 5.0 seconds = 20.820 FPS
108 frames in 5.1 seconds = 21.353 FPS
99 frames in 5.0 seconds = 19.795 FPS
114 frames in 5.0 seconds = 22.664 FPS

sudo rpi-update
sudo reboot

pi@openplotter:~ $ uname -a
Linux openplotter 4.4.37-v7+ #936 SMP Fri Dec 9 16:56:49 GMT 2016 armv7l
GNU/Linux

pi@openplotter:~ $ glxgears
4 frames in 5.0 seconds = 0.797 FPS
102 frames in 5.0 seconds = 20.346 FPS
110 frames in 5.0 seconds = 21.919 FPS
101 frames in 5.0 seconds = 20.027 FPS
107 frames in 5.0 seconds = 21.220 FPS

sudo apt-get dist-upgrade
sudo reboot

pi@openplotter:~ $ glxgears
289 frames in 5.0 seconds = 57.763 FPS
485 frames in 5.0 seconds = 96.999 FPS:
468 frames in 5.0 seconds = 93.436 FPS
516 frames in 5.0 seconds = 103.144 FPS
476 frames in 5.0 seconds = 95.164 FPS

GPU Memory set from 64MB to 256M:
sudo reboot

pi@openplotter:~ $ glxgears
367 frames in 5.0 seconds = 73.331 FPS
465 frames in 5.0 seconds = 92.858 FPS
489 frames in 5.0 seconds = 97.618 FPS
459 frames in 5.0 seconds = 91.638 FPS
508 frames in 5.0 seconds = 101.506 FPS


Kubek
Hi,

I found out why I have had only up to 105FPS while somebody can have up to 140FPS on RPi after (update, upgrade, dist-upgrade, rpi-update).
And the answer is so simply as changing power supply to bigger one.
Now I moved from ~100FPS to ~170FPS with only changed power supply

pi@openplotter:~ $ sudo glxgears
648 frames in 5.0 seconds = 129.563 FPS
813 frames in 5.0 seconds = 162.495 FPS
860 frames in 5.0 seconds = 171.983 FPS
825 frames in 5.0 seconds = 164.824 FPS
840 frames in 5.0 seconds = 167.949 FPS
751 frames in 5.0 seconds = 150.193 FPS
862 frames in 5.0 seconds = 172.253 FPS
798 frames in 5.0 seconds = 159.397 FPS
837 frames in 5.0 seconds = 167.369 FPS
792 frames in 5.0 seconds = 158.212 FPS
789 frames in 5.0 seconds = 157.790 FPS
874 frames in 5.0 seconds = 174.615 FPS
809 frames in 5.0 seconds = 161.799 FPS

Kubek
kubek is offline   Reply With Quote
Old 15-12-2016, 03:02   #204
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 244
Re: OpenCPN on Raspberry PI2

Quote:
Originally Posted by verkerkbr View Post
Dirk,

open logfile info:

OpenGL rendering string Gallium 0.4 on llvmpipe (LLVM 3.9 128 bits)
OpenGl version reported 3.0 Mesa 13.0.0

and more OpenGL settings.

Not yet tried the combination with the VC4 driver.

With the OpenGL setting to on it works very well.

VC4 worked also very well, but gave problems with zooming out. Then the image was scattered.

Anyway this without the VC4 driver, is a big improvement.

Regards,

Bram

Just tried the OpenGL VC4 driver. If you click on the setting in raspi-config, additional software is installed.

It works in OpenCPN but locks up. Glxgears reported errors with libGL and Mesa and also locks up.
Bram,

I can confirm this, also have faults when using the VC4-driver.

Without using the VC-4 Driver all is fine.
CPU load when using OpenGL=on in OC and my 50mb rastercharts is 50 to 60 %.

But panning is much usable then before, yes.

Regards

Andreas
Andreas29 is offline   Reply With Quote
Old 16-12-2016, 05:23   #205
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,122
Re: OpenCPN on Raspberry PI2

Allo Andreas,

now with Wayland and the latest kernel upgrade to 4.4.38 and the latest upgrades, VC4 driver seems to work with OpenCPN.

Still not perfect, but you can give it a try.

Switching off is easy to do.

Have memory setting on 80.

Regards,


Bram
verkerkbr is offline   Reply With Quote
Old 20-12-2016, 17:29   #206
Registered User

Join Date: Dec 2016
Posts: 2
Re: OpenCPN on Raspberry PI2

I have just installed OpenCPN on RPI 3B. Everything mostly works fine until I click the 'Options' button, then OpenCPN crashes.

I have both ENC & RNC charts installed, and they both display.

Any ideas?

jd
magick is offline   Reply With Quote
Old 20-12-2016, 20:03   #207
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,425
Re: OpenCPN on Raspberry PI2

magick,

try building with cmake -DCMAKE_BUILD_TYPE=Debug and get a backtrace
seandepagnier is offline   Reply With Quote
Old 21-12-2016, 00:01   #208
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,122
Re: OpenCPN on Raspberry PI2

Quote:
Originally Posted by magick View Post
I have just installed OpenCPN on RPI 3B. Everything mostly works fine until I click the 'Options' button, then OpenCPN crashes.

I have both ENC & RNC charts installed, and they both display.

Any ideas?

jd
Hi Magict,

Have you enlarge the Partition on the SD Card ? It is in the Raspberry menu.

This is always the first thing you must do.

And take a fast micro SD with reading speed of 80. 16 or 32 GB.

Bram
verkerkbr is offline   Reply With Quote
Old 21-12-2016, 12:34   #209
Registered User

Join Date: Dec 2016
Posts: 2
Re: OpenCPN on Raspberry PI2

Installed the latest version.

4.2.0 Build 2016-02-03.

Works fine now.

Thanks for your suggestions.

jd
magick is offline   Reply With Quote
Old 23-12-2016, 02:33   #210
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,425
Re: OpenCPN on Raspberry PI2

I have tried the new raspbian with vc4 driver....

I had to build opencpn from source. Maybe we should provide binaries for raspberry so the usual method with apt-get can work. Otherwise you need much more disk space to install all the development requirements.

It appears that opengl doesn't support texture compression. I think maybe they fixed this in the git version of the driver to support ETC1 in biggl (which is non-standard) but I will try again to see if I can use gles with the vc4 driver and opencpn.


I have a lot of pending pull requests which improve performance considerably as well, especially in certain cases.

Now I reinstall to 32gb as 4gb isn't enough to do development.
seandepagnier is offline   Reply With Quote
Reply

Tags
enc, opencpn


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 on Raspberry PI Raspbian Captain_Steve OpenCPN 12 08-02-2015 10:45
Comproblem on Raspberry Pi and OpenCPN vagspel OpenCPN 4 26-12-2012 05:01
Raspberry Pi and OpenCPN 3.1.915 spillemw OpenCPN 20 24-09-2012 02:30
Raspberry PI compiles OpenCPN monstads OpenCPN 7 15-03-2012 12:41
The Perfect Platform for OpenCPN ? Raspberry Pi night0wl OpenCPN 10 08-09-2011 19:09

Advertise Here


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


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.