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 18-09-2011, 07:16   #16
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: OpenGL for OpenCPN

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

I'd like to investigate your eeepc901. Why does it not work?

I read that it uses the intel GMA950 graphics chip. Maybe it is a memory issue....

Could you post results of glxinfo, and also contents of /etc/X11/xorg.conf?
Anything in the Xorg log that looks interesting....

Thanks
Dave
Dave

My report isn't fair to eeepc. I had Ubuntu 10.10 with no special tweaks for eeepc. Not even an "/etc/X11/xorg.conf" file, which mean that the kernel & X loaded what they thought was best.

After a bit of tweaking and getting an modified arch linux xorg.conf file, the charts are visible but there is a 2 -3 seconds delay for zooming and panning, for each key press. Nothing smooth..

The GMA950 has shared memory, but it's hard to pinpoint exactly how much. The Xorg log says 262 mb, but that is hard to believe. Probably just an indication of the max value. There is nothing in the bios to change the allocated memory, perhaps there are some jumpers....

I think that installing one of the dedicated distros would be best, to get the most out of the hardware. Perhaps it's just the graphical driver, or the odd setting in xorg.conf.

xorg.conf.doc
glxinfo.txt.doc
Xorg.0.log.doc


Thomas
cagney is offline   Reply With Quote
Old 18-09-2011, 14:23   #17
Registered User

Join Date: Apr 2009
Location: Marina Del Rey
Boat: Hylas 44
Posts: 387
Re: OpenGL for OpenCPN

Hi Dave

After installing glew and making a few adjustments I was able to build 2.6.902 on windows vista. The display will not refresh when in the opengl mode. It appears that opengl 2.0 must be supported by the graphics chipset to work. My Dell 1525 uses an Intel 965 chipset which only supports opengl 1.5. Just for your info.

Chuck
ChuckSK is offline   Reply With Quote
Old 18-09-2011, 16:02   #18
Registered User

Join Date: Jul 2011
Posts: 104
Re: OpenGL for OpenCPN

Please make this an option, what would we Acer Netbook owners gonna do with our GMA500? no openGL here. Otherwise we will get stuck with an old compatible version.
regards.alex
alex2035 is offline   Reply With Quote
Old 19-09-2011, 00:13   #19
Registered User

Join Date: Jul 2010
Location: Germany - near Hamburg
Boat: Beneteau Escapde
Posts: 10
Re: OpenGL for OpenCPN

OS openSUSE 11.4 - 2.6.37.6-0.7 64 Bit
HP Paviion dv6000
Intel(R) Core(TM)2 CPU T5500 1.6GHz
Memory 2 GB
Graphics Processor:GeForce Go 7400
Memory 256 MB
Operating System: Linux-x86_64
NVIDIA Driver Version: 260.19.44

GLX
glxgears
8372 frames in 5.0 seconds = 1674.368 FPS
8430 frames in 5.0 seconds = 1685.062 FPS
8671 frames in 5.0 seconds = 1733.915 FPS
9067 frames in 5.0 seconds = 1813.269 FPS
8435 frames in 5.0 seconds = 1686.905 FPS
8491 frames in 5.0 seconds = 1698.124 FPS

whitout opengl
Click image for larger version

Name:	Bildschirmfoto.png
Views:	157
Size:	88.3 KB
ID:	31804

opengl enabled
Click image for larger version

Name:	Bildschirmfoto-1.png
Views:	172
Size:	223.8 KB
ID:	31805

CM93 not working with opengl.


Alwin
abro is offline   Reply With Quote
Old 19-09-2011, 07:47   #20
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: OpenGL for OpenCPN

Running glxgears on an Asus 1000HA, I get the following:

------------------------------------------------
chris123@segrund:~$ glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
299 frames in 5.0 seconds = 59.618 FPS
300 frames in 5.0 seconds = 59.950 FPS
300 frames in 5.0 seconds = 59.978 FPS
300 frames in 5.0 seconds = 59.973 FPS
300 frames in 5.0 seconds = 59.970 FPS
300 frames in 5.0 seconds = 59.972 FPS
300 frames in 5.0 seconds = 59.964 FPS
300 frames in 5.0 seconds = 59.955 FPS
300 frames in 5.0 seconds = 59.975 FPS
---------------------------------eof----------------

Works pretty good.

/ch
sailias is offline   Reply With Quote
Old 19-09-2011, 07:49   #21
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: OpenGL for OpenCPN

One thing I notices on the low end laptop but excellent on a boat due to the 8-9 hr battery life is that chart rendering as you increase the resolution of the chart is noticeaby slower then on 2.5. So moving from a large scale chart to a small scale chart automatically is decisively slower.

/ch
sailias is offline   Reply With Quote
Old 25-09-2011, 09:39   #22
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenGL for OpenCPN

Hello Team....

Latest iteration of OpenGL alpha code is available on github.

This one is called 2.6.925

git://github.com/bdbcat/OpenCPN.git

To get it, do something like this:

Code:
git clone -b opengl git://github.com/bdbcat/OpenCPN.git
Notes:
1. Improved, adaptive texture cache management for low capability graphics cards.
2. Still no vector chart support.

I find that on my low performance (64 MB shared IGP) Via Unichrome everyday nav system:
a. OpenGL version (2.6.925) is faster than the 2.5 Release when panning and zooming raster charts.
b. Switching charts seems a bit sluggish.
c. Chart overlay objects, like marks and ownship, are occasionally rendered without background transparency until I resize the application window. Wonder what's going on here? I suspect bad GPU drivers....

Untested on Windows. I suspect still some issue with display refresh, but I am unable to debug....

It should sing on graphics cards with more than 128 MB.

Feedback appreciated.
Especially, I want to test to see if anything has broken relative to 2.5 when OpenGL is turned off.

Have Fun.
Dave
bdbcat is offline   Reply With Quote
Old 25-09-2011, 10:02   #23
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: OpenGL for OpenCPN

Dave

First test quick test. No go at all on opengl, screen looks like this
Click image for larger version

Name:	mine4.png
Views:	183
Size:	144.0 KB
ID:	32055

Testing without opengl I get a crash trying route creation. Sorry, some problems prevent a back trace.
Click image for larger version

Name:	mine5.png
Views:	159
Size:	73.4 KB
ID:	32056

Compiling now on eeepc (slow as always).

Thomas
cagney is offline   Reply With Quote
Old 25-09-2011, 10:12   #24
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: OpenGL for OpenCPN

Dave

Back trace skipping ddd

Quote:
Program received signal SIGSEGV, Segmentation fault.
0x00000000004e21e8 in ocpnDC::GetTextExtent (this=Cannot access memory at address 0x7fffff7fee88
)
at /home/thomas/Testing/GitOpenCPN/OpenCPN/src/ocpndc.cpp:475
475 {
(gdb) back
#0 0x00000000004e21e8 in ocpnDC::GetTextExtent (this=Cannot access memory at address 0x7fffff7fee88
)
at /home/thomas/Testing/GitOpenCPN/OpenCPN/src/ocpndc.cpp:475
#1 0x00000000004e225c in ocpnDC::GetTextExtent (this=0x7fffffffcb60, string=..., w=0x7fffffffbdcc,
h=0x7fffffffbdd0, descent=0x0, externalLeading=0x0, font=0x0)
at /home/thomas/Testing/GitOpenCPN/OpenCPN/src/ocpndc.cpp:477
#2 0x00000000004e225c in ocpnDC::GetTextExtent (this=0x7fffffffcb60, string=..., w=0x7fffffffbdcc,
h=0x7fffffffbdd0, descent=0x0, externalLeading=0x0, font=0x0)
at /home/thomas/Testing/GitOpenCPN/OpenCPN/src/ocpndc.cpp:477
#3 0x00000000004e225c in ocpnDC::GetTextExtent (this=0x7fffffffcb60, string=..., w=0x7fffffffbdcc,
h=0x7fffffffbdd0, descent=0x0, externalLeading=0x0, font=0x0)
at /home/thomas/Testing/GitOpenCPN/OpenCPN/src/ocpndc.cpp:477
#4 0x00000000004e225c in ocpnDC::GetTextExtent (this=0x7fffffffcb60, string=..., w=0x7fffffffbdcc,
h=0x7fffffffbdd0, descent=0x0, externalLeading=0x0, font=0x0)
at /home/thomas/Testing/GitOpenCPN/OpenCPN/src/ocpndc.cpp:477
#5 0x00000000004e225c in ocpnDC::GetTextExtent (this=0x7fffffffcb60, string=..., w=0x7fffffffbdcc,
h=0x7fffffffbdd0, descent=0x0, externalLeading=0x0, font=0x0)
at /home/thomas/Testing/GitOpenCPN/OpenCPN/src/ocpndc.cpp:477
#6 0x00000000004e225c in ocpnDC::GetTextExtent (this=0x7fffffffcb60, string=..., w=0x7fffffffbdcc,
h=0x7fffffffbdd0, descent=0x0, externalLeading=0x0, font=0x0)
at /home/thomas/Testing/GitOpenCPN/OpenCPN/src/ocpndc.cpp:477
#7 0x00000000004e225c in ocpnDC::GetTextExtent (this=0x7fffffffcb60, string=..., w=0x7fffffffbdcc,
h=0x7fffffffbdd0, descent=0x0, externalLeading=0x0, font=0x0)
at /home/thomas/Testing/GitOpenCPN/OpenCPN/src/ocpndc.cpp:477
#8 0x00000000004e225c in ocpnDC::GetTextExtent (this=0x7fffffffcb60, string=..., w=0x7fffffffbdcc,
h=0x7fffffffbdd0, descent=0x0, externalLeading=0x0, font=0x0)
at /home/thomas/Testing/GitOpenCPN/OpenCPN/src/ocpndc.cpp:477
#9 0x00000000004e225c in ocpnDC::GetTextExtent (this=0x7fffffffcb60, string=..., w=0x7fffffffbdcc,
h=0x7fffffffbdd0, descent=0x0, externalLeading=0x0, font=0x0)
at /home/thomas/Testing/GitOpenCPN/OpenCPN/src/ocpndc.cpp:477
#10 0x00000000004e225c in ocpnDC::GetTextExtent (this=0x7fffffffcb60, string=..., w=0x7fffffffbdcc,
---Type <return> to continue, or q <return> to quit---
Thomas
cagney is offline   Reply With Quote
Old 25-09-2011, 10:18   #25
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: OpenGL for OpenCPN

doubble
cagney is offline   Reply With Quote
Old 25-09-2011, 10:44   #26
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenGL for OpenCPN

Thomas....

Just pushed a fix for Route Creation crash. Ooops.

OpenGL: Could you try to run opencpn from a console in a smaller window, and look at/post the console output? There is some printf in the code which might be useful at this point.

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 25-09-2011, 10:51   #27
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: OpenGL for OpenCPN

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

Just pushed a fix for Route Creation crash. Ooops.

OpenGL: Could you try to run opencpn from a console in a smaller window, and look at/post the console output? There is some printf in the code which might be useful at this point.

Thanks
Dave


Dave
It work OK on eepc for the first time. Performance at least as good with opengl as without, probably a touch better. Maybe a 64 bit problem.
Route creation ok with gl, crash without.

Output on the 64 bit console, not the gdk critical stuff. Screen looks as my first screendump.
Quote:
Stencil Enabled: 1
Stencil bits: 8
m_ntex: 0 1000

m_ntex: 0 1000

m_ntex: 0 1000

m_ntex: 0 1000

m_ntex: 0 1000

m_ntex: 0 1000

m_ntex: 0 1000

m_ntex: 0 1000
Thomas

PS Route creation fix works OK.
cagney is offline   Reply With Quote
Old 25-09-2011, 12:38   #28
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenGL for OpenCPN

Thomas...

Odd....

I just pushed some more code with a bit more printf. Why is it not executing any OGL stuff? Agreed, probably some obtuse 64 bit problem.

eeepc:
I have not yet exhausted my quiver of speed-up ideas for raster charts on low memory systems, but I am getting close to the end....

I suppose the slowest scenario is still small scale pan operations?

So, now, on to vector charts.

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 25-09-2011, 12:55   #29
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: OpenGL for OpenCPN

Dave

I downloaded the latest
Quote:
src/chcanv.cpp | 21 ++++++++++++++-------
1 files changed, 14 insertions(+), 7 deletions(-)
but the end result is still the same
Quote:
thomas~ $ ./opencpn

(opencpn:15097): Gdk-CRITICAL **: IA__gdk_drawable_get_size: assertion `GDK_IS_DRAWABLE (drawable)' failed

(opencpn:15097): Gdk-CRITICAL **: IA__gdk_drawable_get_depth: assertion `GDK_IS_DRAWABLE (drawable)' failed

(opencpn:15097): Gdk-CRITICAL **: IA__gdk_window_get_origin: assertion `GDK_IS_WINDOW (window)' failed


ARZI checking. min_ref_scale: 482572 proposed: 7.72115e+06

Stencil Enabled: 1
Stencil bits: 8
m_ntex: 0 1000

m_ntex: 0 1000

m_ntex: 0 1000

m_ntex: 0 1000

m_ntex: 0 1000
.....
repeated....
Thomas
cagney is offline   Reply With Quote
Old 25-09-2011, 13:48   #30
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenGL for OpenCPN

Thomas.....

Could you try single chart opengl raster mode?

Also, please note that COG-up mode is unimplemented for opengl.

Thanks
Dave
bdbcat is offline   Reply With Quote
Reply

Tags
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
opengl Support seandepagnier OpenCPN 2 17-07-2011 21:17

Advertise Here


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


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.