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.
  2. Dismiss Notice

Unity3D and Dual GPU (Optimus technology)

Discussion in 'Editor & General Support' started by Krizzu, May 28, 2014.

  1. Krizzu

    Krizzu

    Joined:
    Apr 1, 2013
    Posts:
    6
    got laptop with dual GPU - Intel and Nvidia (Optiumus Technology). To work without any glitches in graphics in editor, I must set Unity3D to work only on Intel GPU, but it's laggy and glitchy too (but less). I would like to launch unity on my Better Card. Any fix for that?

    Example:
    $5vhPZj6.jpg
     
  2. Krizzu

    Krizzu

    Joined:
    Apr 1, 2013
    Posts:
    6
    bump?
     
  3. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    What help do you need? Your post makes it sound like you can use Unity with either GPU, but both are glitchy. Try installing latest drivers and see if you still get glitches on the better GPU maybe post more details about that. I checked the Unity source code, and there is no "enter glitchy mode if user has optimus laptop" ;-) Unity just renders using dx9 or dx11, so doesn't really know about the hardware. Oh, so try the command line arguments that tell Unity which dx to use.
     
  4. Krizzu

    Krizzu

    Joined:
    Apr 1, 2013
    Posts:
    6
    Sorry, let me explain it :d

    I got laptop with dual GPU, integrated Intel and dedicated Nvidia GTX 765M, so also I got optimus technology, which automaticaly choose which GPU should it use, for max battery life.
    I got (latest) Nvidia drivers with Nvidia Panel, where I can choose which GPU should be used in specified programs.
    When I choose Unity to work with Nvidia GPU, it runs fast and well but UI is glitching, flickering and chaning tabs.
    (Something similar like using Clear Flags: Don't Clear in camera component)
    When I change GPU for Intel to run Unity, it works just fine, no glitches, flickering etc, but it's much much slower then Nvidia GPU, I got low FPS etc.

    Yeap, that's my problem, I hope it's clear. I got upload some photos or gifs so it would be more "readable"
     
  5. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,613
    I've seen this before on some laptops with Optimus (including my own). No way around it that I'm aware of - I think it's bugs in the graphics driver. You could file a bug via Unity's bug reporter and maybe Unity will be able to use their own NVidia contacts to get it looked at; at least they should reproduce it on their end so they know what the problem looks like. But sadly I don't think this one is likely to be fixed until NVidia fix it.

    (Related: the editor having trouble is nowhere near as important as the player being incorrectly identified as a non-high-performance app. See bug 600689).
     
  6. Krizzu

    Krizzu

    Joined:
    Apr 1, 2013
    Posts:
    6
    Bump? :D
     
  7. PartyD0nut

    PartyD0nut

    Joined:
    Mar 24, 2014
    Posts:
    17
    Assuming you're using Windows 7 or above, try enabling the default aero theme instead of the classic theme. I college of mine had the exact same problem with his optimus enabled laptop. Other then that try installing your drivers again (both the intel and nvidia drivers).
     
  8. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Out of curiosity does unity work well with nvidia optimus if you force it to use OpenGL?

    Open Unity or make a new shortcut with:

    "C:\Program Files (x86)\Unity\Editor\Unity.exe" -force-opengl
     
  9. Krizzu

    Krizzu

    Joined:
    Apr 1, 2013
    Posts:
    6
    Hmm, seems like changing from classic back to aero repaired the problem. For now.
    Thanks guys for answers!