Documentation

SpeedTree Runtime SDK

Version: 10

SpeedTree Runtime SDK

Version: 10

Memory

Learn how to manage memory usage in the SpeedTree Runtime SDK.
Read time 1 minuteLast updated 2 hours ago

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 DeleteUse SpeedTree's allocator functions that duplicate the functionality of
new
,
new[]
,
delete
, and
delete[]
.
Keeping memory usage lowReduce areas of possible excess memory use.
Tracking resource usageMonitor how much heap space and vertex or index buffer memory the Runtime SDK is using.
Using the reserves systemUse the reserves system to control heap allocations. These reserves mostly affect streaming and culling operations in the Forest library.
Generating a heap reportGenerate a report that describes every heap allocation and other memory management function made by the Runtime SDK.