Windows 11 WSLg using laptops integrated graphics. How to set it to use graphics card?

Rob Weld 6 Reputation points
2022-01-16T23:46:06.837+00:00

I'm running RViz and gazebo via the windows subsystem for linux(ubuntu 18.04). My laptop has intel integrated graphics and a nvidia gpu and most of the time will automatically switch to use the more powerful nvidia gpu as required. This isn't the case when using GUI apps through WSL; is there a way to force WSL to use the gpu over the integrated graphics?

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Anonymous
    2022-01-16T23:50:13.057+00:00

    The product group for WSL actively monitors questions over at
    https://github.com/microsoft/WSL#readme

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  2. Limitless Technology 39,926 Reputation points
    2022-01-18T08:30:58.657+00:00

    Hi there,

    Yes, you can force an app to use the dedicated GPU. You must be running Windows 10 1809 or later for this to work.

    -Open the Settings app and go to the System group of settings.
    -Select the Display tab and scroll down.
    -Click the ‘Graphic Settings‘ option.
    -On the Graphics Settings screen, open the ‘Choose an app to set preference‘ dropdown.
    -Select the type of app you want to set the GPU use for; Classic app for desktop apps, and Universal app for UWP or Store apps.
    -Once selected, click the Browse button and select the app. Click the ‘Options‘ button under the app once it has been added.
    -In the window that opens, select ‘High Performance‘ and click ‘Save‘.


    --If the reply is helpful, please Upvote and Accept it as an answer--


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.