enh(core): launch app using dedicated GPU on multi GPU desktop
Description
It could be interesting to force the use of the dedicated GPU (aka NVIDIA) directly in our launch scripts.
Proposal
1- Always use __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia
OR
2 - parse the ouput of xrandr --listproviders
if output is 2 use __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia
DO nothing otherwise.
Functional specifications
Automatically choose the nvidia gpu on a multi gpu context to have better render quality.
Technical specifications
Details of the implementation
Test plan
Describe how you will verify that the implementation fulfils the specifications