CameraPerformanceTracker
Public Methods
void AddSample
public void AddSample(
long timestamp
)
Parameters
Type | Name | Description |
---|---|---|
long | timestamp |
CameraPerformanceTracker Create
public static CameraPerformanceTracker Create()
long ReadSample
public long ReadSample(
int age
)
Parameters
Type | Name | Description |
---|---|---|
int | age |
int ReadSamples
public int ReadSamples(
NativeArray< long > array
)
Parameters
Type | Name | Description |
---|---|---|
NativeArray< long > | array |
Public Attributes
HasSufficientSamples
public bool HasSufficientSamples => lastSample > SAMPLE_MASK;
NUM_SAMPLES
public const int NUM_SAMPLES = 64;
SAMPLE_MASK
public const int SAMPLE_MASK = NUM_SAMPLES - 1;