ChunkTimingData Class

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.

Properties

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.

Not all streamers are able to control the integration step of the async load operation, in which case this data will be 0.

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.

Constructors

ChunkTimingData(int, int, int, int, Cell, int)

public ChunkTimingData(int worldID, int zoneIndex, int worldGroupingIndex, int levelOfDetail, Cell cellOnStreamableGrid, int chunkIndex)

Initializes a new instance of a ChunkTimingData object.

Parameters

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.

Methods

GetHashCode()

public override int GetHashCode()

Returns a hash code for this ChunkTimingData.

Returns

int
The hash code of the ChunkTimingData.