Table of Contents

Class ArchetypeClusterInfoRecord

Namespace
Typhon.Profiler
Assembly
Typhon.Profiler.dll

Inline cluster-layout descriptor for an archetype's SoA chunk format. Mirrors ArchetypeClusterInfo; serialised inline with each ArchetypeDefinitionRecord when the archetype is cluster-eligible.

public sealed class ArchetypeClusterInfoRecord
Inheritance
ArchetypeClusterInfoRecord
Inherited Members

Constructors

ArchetypeClusterInfoRecord()

public ArchetypeClusterInfoRecord()

Properties

ClusterSize

Entities per cluster (8–64). Power of 2 in practice but not enforced at the wire level.

public ushort ClusterSize { get; init; }

Property Value

ushort

ClusterStride

Total bytes per cluster (header + per-component arrays + element-id tail).

public uint ClusterStride { get; init; }

Property Value

uint

EntityIdsOffset

Byte offset of the entity-id array within the cluster.

public uint EntityIdsOffset { get; init; }

Property Value

uint

HeaderSize

Bytes of header before the per-component arrays start (8 + 8 × ComponentCount in the engine).

public uint HeaderSize { get; init; }

Property Value

uint

IndexElementIdsBaseOffset

Byte offset of the index-element-id base region within the cluster.

public uint IndexElementIdsBaseOffset { get; init; }

Property Value

uint

MultipleIndexedFieldCount

Number of multi-valued indexed fields contributing element-id slots in the cluster tail.

public ushort MultipleIndexedFieldCount { get; init; }

Property Value

ushort