northernmonkeyz
Posts: 10
Joined: Sat Sep 20, 2014 7:41 am

GPU memory split help!

Tue Oct 14, 2014 6:00 pm

Hey,
I am trying to amend my Memory (System/GPU configuration ) in Openelec and I am bit confused.

Its a 512mb Pi and I am trying to do a 256/256 split.

Is this what the config should read -

# default GPU memory split (do not change if you do not know what you are doing)
gpu_mem=256

# SDRAM size based GPU memory split, uncomment and setup to override 'gpu_mem'
# gpu_mem_256=128
# gpu_mem_512=256

Sorry for the dumb question, just new to this!
Also do I need to lose the #?
e.g
# default GPU memory split (do not change if you do not know what you are doing)
gpu_mem=256

# SDRAM size based GPU memory split, uncomment and setup to override 'gpu_mem'
gpu_mem_256=128
gpu_mem_512=256

If someone could amend what it should be so I can paste into the config that would be great!

W. H. Heydt
Posts: 12785
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: GPU memory split help!

Tue Oct 14, 2014 6:08 pm

Either one will work. Bear in mind that the *last* command encountered will govern behavior, so--for clarity and future debugging--pick one scheme or the other.

Unless you are contemplating getting and using a Model A, at this point any Pi you get will have 512MB. If you want the most general solution, is the _512, _256 versions.

northernmonkeyz
Posts: 10
Joined: Sat Sep 20, 2014 7:41 am

Re: GPU memory split help!

Tue Oct 14, 2014 6:13 pm

cheers for the reply.

I am not sure what you mean however as I already have a 512mb pi.

I want to allocate a 256/256 split to the memory but I am not sure what the config.txt file should say,
Also being new to this I don't want to mess it up!!

Can you provide the code to change in this section?

# default GPU memory split (do not change if you do not know what you are doing)
gpu_mem=256 (do I change this to 512 as I have a 512 pi)

# SDRAM size based GPU memory split, uncomment and setup to override 'gpu_mem'
# gpu_mem_256=128 (what do I do here??)
# gpu_mem_512=256 (what do I do here??)

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: GPU memory split help!

Tue Oct 14, 2014 6:43 pm

The code you have is already correct for a 256/256 split on a 512MB Pi.

gpu_mem=256 allocates 256 MB to the GPU and the remaining 256MB is allocated to the ARM CPU.

northernmonkeyz
Posts: 10
Joined: Sat Sep 20, 2014 7:41 am

Re: GPU memory split help!

Tue Oct 14, 2014 7:07 pm

Cheers mate.
So its just as follows -


# default GPU memory split (do not change if you do not know what you are doing)
gpu_mem=256 (do I change this to 512 as I have a 512 pi)

# SDRAM size based GPU memory split, uncomment and setup to override 'gpu_mem'
gpu_mem_256=128
gpu_mem_512=256

Are the bottom 2 lines the only ones that dont have the hash?

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: GPU memory split help!

Tue Oct 14, 2014 7:33 pm

You should leave the hashes on the bottom two lines. The # is commenting the lines out so they don't take effect.

gpu_mem_256=128 won't do anything on your 512MB Pi. The _256 means it is only for the 256MB Pi.

gpu_mem_512=256 will do exactly the same as gpu_mem=256 on a 512MB Pi. You don't need both lines enabled.

So, all you need is

Code: Select all

# default GPU memory split (do not change if you do not know what you are doing)
gpu_mem=256 (do I change this to 512 as I have a 512 pi)

# SDRAM size based GPU memory split, uncomment and setup to override 'gpu_mem'
#gpu_mem_256=128
#gpu_mem_512=256

Return to “Troubleshooting”