This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
Extending Editor Functionality
编程
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
应用程序接口
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

Optimizing Grass

Grass rendering can also reduce the performance. Grass optimization means reducing the number of the grass polygons rendered each frame. This can be achieved by using the specific grass settings.

Notice
To control the number of rendered grass polygons, take a look at the Triangles counter in the Grass tab of the Parameters window.

Setting Up Step for Cell Division#

For optimization purposes, the grass field is split into cells forming a grid. These cells are rendered one by one, from the camera to the horizon. Each cell requires 1 DIP call, so the higher number of cells, the lower the performance. The number of cells is determined by two parameters - the Size of the grass field and the Step by which the grass field is split into cells.

There are two requirements for these parameters that should be met:

  • The size of the field should be divided by the step exactly, with no remainder by division.
  • The step value should stay within the recommended optimal range of [10;25], as the small enough cells are rendered fast and smoothly while the large cells may take more time for rendering.

For example, if the size of the grass field is 4097 x 4097, the recommended Step value is 17. It is in the range and the field size is divided by this value exactly.

Thinning Grass#

Except reducing the number of cells rendered per frame, the grass field can be thinned out with a distance. For this, enable the Thinning option to reduce the number of grass polygons rendered across the grass Fade distance.

Last update: 2020-04-10
Build: ()