public class ChunkTimingData
Holds Asset Chunk specific Timing Data.
You won't use this class directly. Instead, it is created/managed by the ConditionalMembers
class, which makes using of timing data only
in the editor or within a Development Build (for performance reasons).
All timing data is an average of 1 or more samples, unless timing data is not available
because an operation was never carried out for the
asset chunk, in which case Samples will be 0.
Name | Type | Description |
---|---|---|
Activate | TimingData |
Timing Data tracking operations involving the activation of the Asset Chunk. |
BackgroundLoad | TimingData |
Timing data tracking the total time it took to load an Asset Chunk in the background. If the Chunk Streamer does not require manual activation/integration of Asset Chunks, this timing data will be the same as Load. |
CellOnStreamableGrid | Cell |
Gets the Streamable Grid Cell this timing data is associated with. |
ChunkIndex | int |
Gets the index of the asset chunk in relation to other Asset Chunks on the same World Cell. |
Configure | TimingData |
Timing Data tracking the time it takes to configure this asset chunk. For Prefab based asset chunks, configuration involves the instantiation of the asset chunks from their source assets, and so the timings will usually be higher than scene based asset chunks. |
Deactivate | TimingData |
Timing Data tracking operations involving the deactivation of the Asset Chunk. |
Integrate | TimingData |
Timing Data tracking operations involving the integration of the asset chunk into
main memory during async loading.
|
LevelOfDetail | int |
Gets the Level of Detail (LOD Group) this timing data is associated with. |
Load | TimingData |
Timing Data tracking the total time it took to load an Asset Chunk (or its source asset), including the integration step (but does not include the configuration step). |
WorldGroupingIndex | int |
Gets the index of the World Grouping this timing data is associated with. |
WorldID | int |
Gets the ID of the World this timing data is associated with. |
ZoneIndex |
Gets the index of the Zone this timing data is associated with. |
public ChunkTimingData(int worldID, int zoneIndex, int worldGroupingIndex, int levelOfDetail, Cell cellOnStreamableGrid, int chunkIndex)
Initializes a new instance of a ChunkTimingData object.
Name | Type | Description |
---|---|---|
worldID | int |
The ID of the World this timing data is associated with. |
zoneIndex | int |
The index of the Zone this timing data is associated with. |
worldGroupingIndex | int |
The index of the World Grouping this timing data is associated with. |
levelOfDetail | int |
The Level of Detail (LOD Group) this timing data is associated with. |
cellOnStreamableGrid | Cell |
The Streamable Grid Cell this timing data is associated with. |
chunkIndex | int |
The index of the asset chunk in relation to other Asset Chunks on the same World Cell. |
public override int GetHashCode()
Returns a hash code for this ChunkTimingData.
int
The hash code of the ChunkTimingData.