-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
GPU device choice for D3D11 and Vulkan #10922
Conversation
Core/Config.h
Outdated
@@ -153,6 +153,9 @@ struct Config { | |||
|
|||
// GFX | |||
int iGPUBackend; | |||
// We have separate device parameters for each backend so it doesn't get erased if you switch backends. | |||
// If not set, will use the "best" device. | |||
std::string VulkanDevice; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sVulkanDevice and sD3D11Device? We're kinda stuck with the convention now.
-[Unknown]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, good point.
36554a0
to
238521a
Compare
Rebased on master, renamed the variable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor difference between D3D11 and Vulkan is that, it looks like D3D11 won't save the device name until you change it - but Vulkan will update the selected device name in the config.
But probably fine even if it's slightly different.
-[Unknown]
I was expecting that restart will be needed but ppsspp doesn't say like for the renderer. Maybe a popup message will be nice. |
Created an issue. |
Some rather mindless coding on a train from earlier today, heh. Mostly useful for debugging the Intel implementations of these APIs when you happen to have a discrete GPU in your machine too.
Thinking about also making a fallback so you can also enter "1" or "2" to choose the first or second devices etc, if you can't guess the correct name when modifying the INI to rescue yourself from a broken driver situation, if that ever happens...