UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
FAQ
编程
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and 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
CIGI Client Plugin
Rendering-Related Classes

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 this 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: 2018-12-17