UnityQualitySrttings(不是原創)

 

 

Unity allows you to set the level of graphical quality it will attempt to render. Generally speaking, quality comes at the expense of framerate and so it may be best not to aim for the highest quality on mobile devices or older hardware since it will have a detrimental effect on gameplay. The Quality Settingsinspector (menu: Edit->Project Settings->Quality) is split into two main areas. At the top, there is the following matrix:-app

nity能夠設置渲染圖像的質量級別。通常來講,圖形質量會致使幀速率下降,所以最好不要在移動設備或舊的硬件上使用最高圖形質量,這會對遊戲產生很差影響。圖形質量設置面板有2個主要區域(菜單Edit->Project Settings->Quality)。在面板上方,有下列矩陣:less

Unity lets you assign a name to a given combination of quality options for easy reference. The rows of the matrix let you choose which of the different platforms each quality level will apply to. The Default row at the bottom of the matrix is not a quality level in itself but rather sets the default quality level used for each platform (a green checkbox in a column denotes the level currently chosen for that platform). Unity comes with six quality levels pre-enabled but you can add your own levels using the button below the matrix. You can use the trashcan icon (the rightmost column) to delete an unwanted quality level.ide

你能夠在unity中爲特定的質量選項組合設置一個名稱。矩陣的行,能夠設置不一樣的平臺使用的質量級別。在矩陣底部,名爲default的行是平臺的默認質量級別(綠色複選框表示該平臺目前所選擇的級別)。Unity有6個預設的質量級別,你可使用矩陣下方的按鈕添加自定義的級別。能夠經過垃圾桶圖標(最右邊的列)刪除沒必要要的質量級別。性能

You can click on the name of a quality level to select it for editing, which is done in the panel below the settings matrix:-動畫

點擊質量級別的名稱,選擇編輯,在矩陣下方有以下設置面板:ui

The quality options you can choose for a quality level are as follows:-this

質量級別能夠設置的選項以下:spa

  • Name  名稱
    The name that will be used to refer to this quality level
    質量級別的名稱
  • Pixel Light Count  像素燈數量
    The maximum number of pixel lights when Forward Rendering is used.
    前向渲染使用的像素燈的最大數量
  • Texture Quality  紋理質量
    This lets you choose whether to display textures at maximum resolution or at a fraction of this (lower resolution has less processing overhead). The options are Full Res, Half Res, Quarter Res and Eighth Res.
    你能夠設置使用最大分辨率的紋理或者部分紋理(低分辨率紋理的處理開銷低)。選項有 完整分辨率,1/2分辨率,1/4分辨率,1/8分辨率。
  • Anisotropic Textures  各向異性紋理
    This enables if and how anisotropic textures will be used.
    設置是否使用各向異性紋理和使用方式。
  • Disabled  禁用
    Anisotropic textures are not used.
    禁用各向異性紋理
  • Per Texture  每紋理
    Anisotropic rendering will be enabled separately for each Texture.
    每張紋理都將使用各向異性渲染。
  • Forced On  強制開啓
    Anisotropic textures are always used.
    各向異性紋理一直啓用。
  • AntiAliasing  抗鋸齒
    This sets the level of antialiasing that will be used. The options are 2x, 4x and 8x multi-sampling.
    設置抗鋸齒級別。選項有​​2倍,4倍和8倍採樣。
  • Soft Particles  軟粒子
    Should soft blending be used for particles?
    是否使用粒子軟融合。
  • Shadows  陰影
    This determines which type of shadows should be used
    設置陰影的類型
  • Hard and Soft Shadows
    軟硬陰影
    Both hard and soft shadows will be rendered.
    軟,硬陰影都將會被渲染
  • Hard Shadows Only  僅硬陰影
    Only hard shadows will be rendered.  僅渲染硬陰影
  • Disable Shadows  禁用陰影
    No shadows will be rendered.  不渲染陰影
  • Shadow resolution
    陰影分辨率
    Shadows can be rendered at several different resolutions: Low, Medium, High and Very High. The higher the resolution, the greater the processing overhead.
    陰影能夠渲染爲以下分辨率:低,中,高,極高。分辨率越高,處理開銷越大。
  • Shadow Projection
    陰影投射
    There are two different methods for projecting shadows from a directional light. Close Fit renders higher resolution shadows but they can sometimes wobble slightly if the camera moves. Stable Fit renders lower resolution shadows but they don't wobble with camera movements.
    平行光投射陰影有2種方式:Close Fit渲染較高分辨率的陰影,可是若是相機移動時,有時陰影會輕微擺動。Stable Fit渲染的陰影分辨率較低,不過相機移動時不會發生擺動。
  • Shadow Cascades
    陰影層疊
    The number of shadow cascades can be set to zero, two or four. A higher number of cascades gives better quality but at the expense of processing overhead (see the Directional Shadows page for further details).
    陰影的層疊數能夠設置爲0。層疊數越高,陰影質量越好,可是計算花費也越大。(查看 方向陰影 頁面獲取更多細節 )
  • Shadow Distance  陰影距離
    The maximum distance from camera at which shadows will be visible. Shadows that fall beyond this distance will not be rendered.
    相機的最大陰影可見距離。超出這個距離的陰影不會被渲染。
  • Blend Weights  融合權重
    The number of bones that can affect a given vertex during an animation. The available options are one, two or four bones.
    骨骼的數量會影響動畫的頂點。選項有1,2,4個骨骼。
  • VSync Count  垂直同步計數
    Rendering can be synchronised with the refresh rate of the display device to avoid "tearing" artifacts (see below). You can choose to synchronise with every vertical blank (VBlank), every second vertical blank or not to synchronise at all.
    渲染能夠與顯示設備的刷新率同步,以免"撕裂"的現象(見下文)。你能夠選擇同步每個垂直空白(VBlank),每一秒的垂直空白或不一樣步。
  • LOD Bias
    LOD偏離
    LOD levels are chosen based on the onscreen size of an object. When the size is between two LOD levels, the choice can be biased toward the less detailed or more detailed of the two models available. This is set as a fraction from 0 to 1 - the closer it is to zero, the more the bias is toward the less detailed model.
    LOD級別基於物體在屏幕上的大小。當物體大小在兩個LOD級別之間,能夠選擇使用低細節模型或高細節模型。數值取值範圍爲0-1,數值越接近0,越偏向於選擇低細節模型。
  • Maximum LOD Level
    最大LOD級別
    The highest LOD that will be used by the game. Models which have a LOD above this level will not be used and omitted from the build (which will save storage and memory space).
    遊戲中使用的最高LOD級別。在該級別以上的模型不會被使用,而且在編譯時忽略。(這將節省存儲空間和內存空間)。

Tearing 撕裂

The picture on the display device is not continuously updated but rather the updates happen at regular intervals much like frame updates in Unity. However, Unity's updates are not necessarily synchronised with those of the display, so it is possible for Unity to issue a new frame while the display is still rendering the previous one. This will result in a visual artifact called "tearing" at the position onscreen where the frame change occurs.orm

顯示設備上的圖像更新並非連續的,而是相似Unity的幀同樣按期更新。然而,Unity的更新不必定與顯示設備的更新同步,因此有可能Unity提交了新的一幀圖像,而顯示設備仍顯示前一幀圖像。這會致使發生變化的屏幕位置出現"撕裂"的現象。htm


Simulated example of tearing. The shift in the picture is clearly visible in the magnified portion.

撕裂的示例。圖片的放大部分能夠清楚看到變化。

It is possible to set Unity to switch frames only during the period where the display device is not updating, the so-called "vertical blank". The VSync option on the Quality Settings synchronises frame switches with the device's vertical blank or optionally with every other vertical blank. The latter may be useful if the game requires more than one device update to complete the rendering of a frame.

可讓Unity在顯示設備不更新的時候提交新的幀圖像,這個時間段稱爲"垂直空白"。 質量設置的垂直同步選項能夠同步幀切換和設備的垂直空白,或者是其餘全部設備的垂直空白。後者可用於遊戲須要更新多個設備以完成一幀的渲染的狀況。

Anti-aliasing 抗鋸齒

Anti aliasing improves the appearance of polygon edges, so they are not "jagged", but smoothed out on the screen. However, it incurs a performance cost for the graphics card and uses more video memory (there's no cost on the CPU though). The level of anti-aliasing determines how smooth polygon edges are (and how much video memory does it consume).

抗鋸齒能夠改善多邊形邊的顯示效果,在屏幕上顯得平滑而不是鋸齒。抗鋸齒會佔用顯卡的性能和顯存(不會佔用CPU性能)。抗鋸齒的級別決定了多邊形的邊的平滑程度。(也決定了消耗顯存的多少)

 
Without anti-aliasing, polygon edges are "jagged".
未開啓抗鋸齒,多邊形的邊顯示爲鋸齒狀。

 
With 6x anti-aliasing, polygon edges are smoothed out.開啓6倍抗鋸齒,邊顯得平滑。

相關文章
相關標籤/搜索