Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 23-09-2012, 10:58   #16
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,144
Re: Raspberry Pi and OpenCPN 3.1.915

It seems unfortunate that OpenCPN runs slowly on this platform (even with overclocking).

What makes it so slow ?
Is there some way to optimize the code ?

I'd really like to see it working well on one of these low power platforms.
__________________

__________________
NahanniV is offline   Reply With Quote
Old 23-09-2012, 17:05   #17
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: Raspberry Pi and OpenCPN 3.1.915

NahanniV...

OpenCPN performance is all about the graphics subsystem. Pushing around millions of 24 bit wide screen pixels is going to take some time unless a dedicated GPU is available, as with OpenGL.

Best suggestion for better performance: use a lower screen resolution.

Dave
__________________

__________________
bdbcat is offline   Reply With Quote
Old 23-09-2012, 19:18   #18
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,144
Re: Raspberry Pi and OpenCPN 3.1.915

Quote:
Originally Posted by spillemw View Post
OpenCPN is now a little slow, but workable.
Quote:
Originally Posted by bdbcat View Post
OpenCPN performance is all about the graphics subsystem. Pushing around millions of 24 bit wide screen pixels is going to take some time unless a dedicated GPU is available, as with OpenGL.

Best suggestion for better performance: use a lower screen resolution.
So what resolution are you using spillemw ?
__________________
NahanniV is offline   Reply With Quote
Old 24-09-2012, 01:50   #19
Registered User

Join Date: Jul 2011
Posts: 19
Re: Raspberry Pi and OpenCPN 3.1.915

Quote:
Originally Posted by NahanniV View Post
So what resolution are you using spillemw ?
Indeed the Pi is very low on memory that is then shared as well.
I am using 1280x800.
I could go to less, but I don't really want to.
I think we will need to wait for a Model C that has 1 GB or RAM or dedicated video memory. My guess is that should not take too long given the prices of memory.
On my wishlist is to run vncserver on the pi and run OpenCPN on that (meaning i could use whichever tablet or smartphone in the boat to run OpenCPN). That will require a little more memory still.
CPU wise with the overclocking i think it is ok.
__________________
spillemw is offline   Reply With Quote
Old 24-09-2012, 03:08   #20
Registered User

Join Date: Jul 2012
Location: UK
Boat: Albin Vega, 27'
Posts: 79
Re: Raspberry Pi and OpenCPN 3.1.915

I had OpenCPN running satisfactorily over the weekend on my my pi using the latest Debian image

I intend putting up a web page that describes the process, but that will be a few weeks away due to other commitments, however, in a nutshell:

- I had to tweak some of the OpenCPN code and recompile it (see Chart Problems on Raspberry Pi )

- opencpn.conf MEMCacheLimit=30 NCacheLimit=10

- doesn't work with NOAA ENC charts

- overclocking set to medium (no/minimum overvoltage) was perfectly adequate

- changed the vector chart settings to Mariners standard because of some hiccups zooming out in standard mode (water showing green)

- no problems with chart quilting; I was using vector charts and Antares raster charts

- 'make package' creates a .deb, but it won't install and complains about the wrong architecture. I suspect it's because there's a line in the makefile that renames arm to armel, but this version of debian is armhf... I'm using 'make install', so it's not a high priority for me.

- I initially had a lot of trouble getting a GPS to talk to the Pi:
1.) the USB/Serial converter I was using was old and not supported; a newer cheap Chinese one from eBay sorted that out. (/dev/ttyUSB0 in OpenCPN)
2.) I also tried a GPIO serial/TTL converter. That worked as well (/dev/ttyAMA0 in OpenCPN)
3) I wasted a lot of time trying to get a Garmin eTrex to talk to the Pi.... until I discovered the eTrex only outputs NMEA at 4800baud but the Pi supports >= 9600.
4) I am using an old Garmin GPS48 with NMEA at 9600 baud and it's perfect via the serial/USB converter.
5) In future I'll probably use the GPIO connecter which frees up a USB port for a wifi dongle; the Pi doesn't seem to like multiple devices on USB hubs


I only encountered one problem with the system .. I don't recommend using a wireless mouse ... slide, bump, splash ... 'nuff said.
__________________
Alisdair is offline   Reply With Quote
Old 24-09-2012, 03:30   #21
Registered User

Join Date: Jul 2012
Location: UK
Boat: Albin Vega, 27'
Posts: 79
Re: Raspberry Pi and OpenCPN 3.1.915

Quote:
Originally Posted by spillemw View Post
- i need to buy an 8 GB one if the Pi supports that).
I'm using a 16GB class 10 with no problems
__________________

__________________
Alisdair is offline   Reply With Quote
Reply

Tags
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




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 15:56.


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.