Memory
Balance performance with available memory by using less memory, keeping track of resources, using reserves wisely, and creating detailed reports about memory usage.
| Topic | Description |
|---|---|
| SpeedTree New and Delete | Use SpeedTree's allocator functions that duplicate the functionality of new, new[], delete, and delete[]. |
| Keeping memory usage low | Reduce areas of possible excess memory use. |
| Tracking resource usage | Monitor how much heap space and vertex or index buffer memory the Runtime SDK is using. |
| Using the reserves system | Use the reserves system to control heap allocations. These reserves mostly affect streaming and culling operations in the Forest library. |
| Generating a heap report | Generate a report that describes every heap allocation and other memory management function made by the Runtime SDK. |