Video memory?

Post Reply
specs
Posts: 24
Joined: Sun Nov 24, 2019 12:14 pm
languages_spoken: english
ODROIDs: odroid n2
Has thanked: 4 times
Been thanked: 3 times
Contact:

Video memory?

Post by specs » Thu Mar 26, 2020 3:44 pm

Hi,
I use the odroid N2 (4GB) with the standard supplied Ubuntu version.

Where can I find how much memory is reserved for the graphical interface?
And can it be expanded or reduced according to my needs?
The boot.ini where I expected it, does not mentioned reserv graphical memory.

I assume the protection of the memory is solely accounted for by the used Linux kernel (here the 4.9.latest odroid kernel).
For the memory protection I will lookup some information on the Ubuntu site as a starting point.

User avatar
mad_ady
Posts: 7900
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 499 times
Been thanked: 348 times
Contact:

Re: Video memory?

Post by mad_ady » Fri Mar 27, 2020 6:51 pm

I'm not sure, but it should be mentioned somewhere in the dtb. It's probably listed as cma memory...
There were some tests done a while ago that tried to disable the gpu to free up the memory, but they caused stability issues

specs
Posts: 24
Joined: Sun Nov 24, 2019 12:14 pm
languages_spoken: english
ODROIDs: odroid n2
Has thanked: 4 times
Been thanked: 3 times
Contact:

Re: Video memory?

Post by specs » Sat Mar 28, 2020 6:18 am

The size of the videomemory is for me a question about optimization.
The application is navigation and this means showing map data on the screen for me.

However I remember reading OpenGL was not supported for the n2 and the charts cdo laim quite a part of the main memory.
With other hardware people claim better perfomance with OpenGL + cma=512M.

User avatar
mad_ady
Posts: 7900
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 499 times
Been thanked: 348 times
Contact:

Re: Video memory?

Post by mad_ady » Sat Mar 28, 2020 2:39 pm

For opengl you will need gl4es wrapper library. Note that x11 rendering is not accelerated, so you will get low fps (but might be ok for maps)

User avatar
meveric
Posts: 11008
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4
Has thanked: 37 times
Been thanked: 338 times
Contact:

Re: Video memory?

Post by meveric » Sat Mar 28, 2020 6:53 pm

Mali GPUs don't reserve set amount of memory simply for GPU. There is no memory split like the RPi.
They share the memory with the system. So if the GPU needs more memory it just takes more memory as long as it's available.
mad_ady wrote:
Sat Mar 28, 2020 2:39 pm
For opengl you will need gl4es wrapper library. Note that x11 rendering is not accelerated, so you will get low fps (but might be ok for maps)
gl4es can accelerate OpenGL X11 applications, on the contrary to X11 + GLESv2 it's able to create a "fake" X11 surface which is hardware accelerated (although it's mainly a fullscreen mode).
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
mad_ady
Posts: 7900
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 499 times
Been thanked: 348 times
Contact:

Re: Video memory?

Post by mad_ady » Sat Mar 28, 2020 8:20 pm

Oh, I forgot about that. Thanks... In that case wouldn't it be easier to run something like compyz (or whatever its successors are) and get an accelerated desktop on the N2? I'm guessing gl4es is missing some features that these ptograms might need, right?

User avatar
meveric
Posts: 11008
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4
Has thanked: 37 times
Been thanked: 338 times
Contact:

Re: Video memory?

Post by meveric » Mon Mar 30, 2020 3:00 pm

Yes, these tools use some very old legacy GLX functions that are rarely used otherwise, and are most likely not implemented.
I tried this in the past as well with very little success.
These users thanked the author meveric for the post:
mad_ady (Mon Mar 30, 2020 4:44 pm)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest