Open cyberphantom52 opened 2 years ago
I have a different proposal for the UI/UX: this could be handled through enabling or disabling "Discrete Graphics" from the bottle preferences, to avoid duplicated entries. If Discrete Graphics and Gamescope are enabled, Bottles won't run with --prefer-vk-device
, however disabling Discrete Graphics will intelligently make Bottles enable --prefer-vk-device
. If Gamescope is disabled, then Bottles will do the normal way of using discrete graphics.
For reference, this is precisely what we do with MangoHud and mangoapp:
Edit: never mind. I just looked through the manpage and it allows to do a lot more than that:
--prefer-vk-device prefer Vulkan device for compositing (ex: 1002:7300)
Tell us the problem or your need
This argument allows us to force gamescope to run on the specfied GPU. It is extremely useful on laptops with NVIDIA GPUs as you can just run gamescope on the iGPU which would be AMD/Intel, both of which gamescope runs on nicely and the game itself runs on NVIDIA GPU.
Describe the solution you'd like
There are two ways this can be implemented, either bottles can automagically detect the possible GPUs on the computer and provide them as a drop down list or the easier way would be to allow the user to enter the pci id of the device manually.
I tried to implement the latter myself, but i am pretty new to linux development in general and got confused over how to make it appear in the preferences menu. :P
Other solutions?
No response
Additional context and references
No response