Model |
The ModelOptimizer type exposes the following members.
Name | Description | |
---|---|---|
CombineModelsWithSameMaterial | If true than GeometryModel3D with the same material are combined into one GeometryModel3D. This reduces number of required GPU draw calls and can significantly improve performance. Default value is true. | |
CompareMaterialsByHash | If true than special 64 bit hash code is calculated from each material and it is used to compare if two materials are the same (this combines difference instances of same material). If false than material references are compared. Default value is true. | |
FreezeAll | Gets or sets a boolean that specifies if whole Model3D objects are frozen. Freezing Model3D objects can improve performance and allow Model3D objects to be user on different thread that the thread where they were created. Setting this property to true will also set FreezeMaterials and FreezeMeshGeometries to true. Default value is true. | |
FreezeMaterials | Gets or sets a boolean that specifies if Materials are frozen. Freezing materials can improve performance and allow material objects to be user on different thread that the thread where they were created. A drawback is that when materials are frozen, they cannot be changed any more (but if GeometryModel3D is not frozen, the material can be still replaced by some other material). Default value is true. | |
FreezeMeshGeometries | Gets or sets a boolean that specifies if MeshGeometries3D objects are frozen. Freezing MeshGeometries3D objects can improve performance and allow MeshGeometries3D objects to be user on different thread that the thread where they were created. A drawback is that when MeshGeometries3D objects are frozen, they cannot be changed any more - you cannot change individual positions or triangle indices (but if GeometryModel3D is not frozen, the value of Geometry property can be changed with some other Geometry). Default value is true. |