Performance
During development, when a trade-off was made between performance and something else, performance almost always won. This overview provides guiding principles and techniques to maximize the performance of your application.
Techniques in the following table provide view-independent performance improvements. Regardless of what is visible in the scene, these techniques are beneficial.
Topic | Description |
---|---|
Batching | Using one primitive to represent multiple objects can drastically improve performance. |
Set Hint | Provide the most appropriate SetHint enumeration when initializing a primitive for the best performance of both static and dynamic primitives. |
The following techniques provide view-dependent performance improvement. Their benefit is dependent on the camera position and camera orientation.
Topic | Description |
---|---|
Object Culling | Culling objects that are not visible provides significant view-dependent performance improvements. |
Backface Culling | Culling triangles that face away from the camera can provide modest performance gains. |