Search Unity

Random black vertical bars in Windows fullscreen

Discussion in 'Editor & General Support' started by StealThePixels, Sep 6, 2015.

  1. StealThePixels

    StealThePixels

    Joined:
    Apr 2, 2015
    Posts:
    68
    In some levels when playing under Windows 7 64bit in full-screen, the game automatically adds black bars to the left and right and the visual gets cut as well.
    I've read somewhere that forcing the player to DX9 instead of DX11 fixed the issue, and that would be ok for my game since it's 3D but not next-gen graphics :)

    However i could not find such an option, where is it?
    This is what i see from the Player Settings


    Graphics card: Geforce GT320M
    Resolutions which gave the issue: 1680x1050 or 1152x864 , i've not tried so many resolutions yet, i'll come back with updates

    P.S. there is this command-line option -force-d3d9 but that's for the editor not the player
     
  2. StealThePixels

    StealThePixels

    Joined:
    Apr 2, 2015
    Posts:
    68
    Nevermind, i've added a script which always forces the resolution to be one with 16:9 ratio which works well, since all objects i want to be visible are not cut anymore by those black bars.

    This is a workaround though, not a fix
     
  3. jleslie

    jleslie

    Joined:
    Mar 24, 2013
    Posts:
    12
    Under Other Settings, uncheck Automatic Graphics API and you can control whether its DX9 or DX11 or both.