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

Improve nVidia Optimus and AMD PowerXpress compatibility #767

Merged
merged 1 commit into from Aug 24, 2015

Conversation

charliebruce
Copy link
Contributor

Fix for #659 - signal to the nVidia drivers that, if it is an "Optimus"-enabled computer, that the high-performance graphics card should be used with PCSX2. This export must be added to the main executable not to the graphics plugin(s) - the nVidia drivers only look at the main executable.

Sorry this simple change is spread over multiple commits!

@charliebruce charliebruce changed the title Improve nVidia Optimus compatbility Improve nVidia Optimus and AMD PowerXpress compatibility Aug 15, 2015
@gregory38
Copy link
Contributor

Could you rebase and squash all commits into a single one ?

@charliebruce
Copy link
Contributor Author

Just reorganised it all into one commit.

@mirh
Copy link

mirh commented Aug 16, 2015

Just for the records, AMD is using Enduro designation at the moment.

@gregory38
Copy link
Contributor

@bositman could you check compilation on vs2013.

@gregory38
Copy link
Contributor

!!! Don't merge it now. We need to do #690 first !!!

@micove
Copy link
Contributor

micove commented Aug 17, 2015

Well since I'm updating the Debian copyright file right now to upload the current master. I only want to point out that the copyright header for the new cpp file is missing.

@bositman
Copy link
Member

Yeah it compiles OK in VS 2013

@refractionpcsx2
Copy link
Member

#690 is merged, this now has conflicts to fix up

@bositman bositman removed their assignment Aug 20, 2015
@micove
Copy link
Contributor

micove commented Aug 22, 2015

@charliebruce

Hey, could you rebase and squash all commits into a single one?

I don't have Optimus or the AMD equivalent to check if this actually works. I just know it compiles.

@charliebruce
Copy link
Contributor Author

Just rebased and merged, should all be fine now? Tested on my laptop with Optimus and it works correctly. I don't have an AMD Hybrid Graphics chipset to test it with.

@micove
Copy link
Contributor

micove commented Aug 24, 2015

If it works for optimus then it's fine then.

I would have used _WIN32 which is a builtin instead of _WINDOWS which is a relic from the 16-bit era. Also I would have put the file somewhere else (not sure where maybe one directory down) other than the VSprojects folder. To be fair _WINDOWS is used in other files and IopSif.cpp is also in that same folder so I'm probably being picky.

@charliebruce
Copy link
Contributor Author

I'll make those changes quickly if you like - shouldn't take me long.

On 24 August 2015 at 12:30, micove notifications@github.com wrote:

If it works for optimus then it's fine then.

I would have used _WIN32 which is a builtin instead of _WINDOWS which is a
relic from the 16-bit era. Also I would have put the file somewhere else
(not sure where maybe one directory down) other than the VSprojects folder.
To be fair _WINDOWS is used in other files and IopSif.cpp is also in that
same folder so I'm probably being picky.


Reply to this email directly or view it on GitHub
#767 (comment).

@micove
Copy link
Contributor

micove commented Aug 24, 2015

Oh sure, I would merge it afterwards.

multiple graphics processors are available (nVidia Optimus, AMD Hybrid
Graphics).
@charliebruce
Copy link
Contributor Author

Should all be done now.

@micove
Copy link
Contributor

micove commented Aug 24, 2015

I already checked the code and I just compiled it and ran it. It did not break my laptop which has no optimus or amd equivalent therefore I'm merging it.

Thanks!

micove added a commit that referenced this pull request Aug 24, 2015
Improve nVidia Optimus and AMD PowerXpress compatibility
@micove micove merged commit 94d8d32 into PCSX2:master Aug 24, 2015
@avih
Copy link
Contributor

avih commented Aug 24, 2015

Nice. Just tested this patch with AMD 8850m in "Enduro" configuration, with Catalyst 15.7, and it seems to work well!

(had to first "restore defaults" for the pcsx2 executable at Catalyst -> power -> switchable graphics application settings, and then, without this patch it would use the Intel iGPU by default, and after the patch it uses the AMD GPU automatically).

Thanks!

@karasuhebi
Copy link
Contributor

Thanks for this!

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

Successfully merging this pull request may close these issues.

None yet

8 participants