Improve nVidia Optimus and AMD PowerXpress compatibility #767

Merged
merged 1 commit into from Aug 24, 2015

Projects

None yet

8 participants

@charliebruce
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 from Improve nVidia Optimus compatbility to Improve nVidia Optimus and AMD PowerXpress compatibility Aug 15, 2015
@gregory38
Contributor

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

@charliebruce
Contributor

Just reorganised it all into one commit.

@mirh
mirh commented Aug 16, 2015

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

@bositman bositman was assigned by gregory38 Aug 17, 2015
@gregory38
Contributor

@bositman could you check compilation on vs2013.

@gregory38 gregory38 added the Reviewed label Aug 17, 2015
@gregory38
Contributor

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

@micove
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
Member

Yeah it compiles OK in VS 2013

@refractionpcsx2
Member

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

@bositman bositman removed their assignment Aug 20, 2015
@micove micove was assigned by gregory38 Aug 21, 2015
@micove
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
Contributor

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
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
Contributor

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
Contributor
micove commented Aug 24, 2015

Oh sure, I would merge it afterwards.

@charliebruce charliebruce Request the use of the high-performance graphics card on systems where
multiple graphics processors are available (nVidia Optimus, AMD Hybrid
Graphics).
37cfdf6
@charliebruce
Contributor

Should all be done now.

@micove
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 micove merged commit 94d8d32 into PCSX2:master Aug 24, 2015
@avih
Member
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
Contributor

Thanks for this!

@mirh mirh referenced this pull request in benvanik/xenia Dec 27, 2015
Merged

Nvidia Optimus support #493

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment