Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question How to make WebGL build to use Dedicated GPU

Discussion in 'Web' started by pu12, Aug 1, 2023.

  1. pu12

    pu12

    Joined:
    Jul 31, 2023
    Posts:
    3
    Hey can anyone share how to make unity webgl build to use dedicated GPU instead of default integrated GPU?
    I tried some ways , but not working. Some of the ways like adding powerPreference in config etc..... But none of them worked :(
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,363
    You probably already ran into this or similar articles?
    https://alteredqualia.com/texts/optimus/

    The issue is likely graphics driver / notebook model or vendor / browser specific and not limited to Unity apps. I'd try a graphics driver update if the browser settings don't take effect.
     
  3. brendanduncan_u3d

    brendanduncan_u3d

    Unity Technologies

    Joined:
    Jul 30, 2019
    Posts:
    359
    The powerPreference in the WebGL Player Settings is the mechanism we have to tell the browser to prefer either the dedicated GPU or the integrated GPU. It's ultimately up to the browser to decide which it wants to give us.
     
    pu12 and De-Panther like this.
  4. pu12

    pu12

    Joined:
    Jul 31, 2023
    Posts:
    3
    Already went through it. Still not working. I don't want to make users to do the settings change in nvidia control panel from their end. thanks for answer :)
     
  5. pu12

    pu12

    Joined:
    Jul 31, 2023
    Posts:
    3
    Thanks for confirmation :)