Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VideoCommon: Allow more Ram for HiresTexture if system memory is over 4GB #2874

Merged
merged 1 commit into from Aug 20, 2015

Conversation

barat
Copy link

@barat barat commented Aug 18, 2015

Inspired by Jhonn on dolphin forum I created one improvement. IMO 2GB memory is enough to make sure that system will be stable.
This change will allow to have 6GB texture memory for users with 8GB RAM (previous 4GB).

size_t sys_mem = MemPhysical();
size_t recommended_min_mem = 2 * (1024.0 * 1024.0);
// keep 2GB memory for system stability if system RAM is 4GB+ - use half of memory in other cases
size_t max_mem = (sys_mem - recommended_min_mem < recommended_min_mem) ? (sys_mem / 2) : (sys_mem - recommended_min_mem);

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@JosJuice
Copy link
Member

You should rebase all the commits into a single one.

@JosJuice
Copy link
Member

You can ignore the FifoCI results, they give false positives sometimes. This PR's code looks nice to me now, but I'll let someone else weigh in on the policy of keeping 2 GB free.

@dolphin-emu-bot
Copy link
Contributor

FifoCI detected that this change impacts graphical rendering. Here are the behavior differences detected by the system:

automated-fifoci-reporter

@degasus
Copy link
Member

degasus commented Aug 20, 2015

It should be enough to not crash, so LGTM

degasus added a commit that referenced this pull request Aug 20, 2015
VideoCommon: Allow more Ram for HiresTexture if system memory is over 4GB
@degasus degasus merged commit cb264df into dolphin-emu:master Aug 20, 2015
@JosJuice
Copy link
Member

Do we want this in stable too? It's a simple change, and it's often requested by users.

@degasus
Copy link
Member

degasus commented Aug 20, 2015

yeah, pick it :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants