Interface ISyncProvider
An interface for synchronization sources which may be used to control the engine update timing.
Namespace: Unity.LiveCapture
Assembly: Unity.LiveCapture.dll
Syntax
public interface ISyncProvider
Remarks
Classes implementing this interface must have the System.SerializableAttribute
and
Sync
Properties
DroppedFrameCount
The number of synchronization signal pulses that have been skipped since starting the synchronization provider.
Declaration
int DroppedFrameCount { get; }
Property Value
Type | Description |
---|---|
int |
LastPulseCountDelta
The number of synchronization signal pulses between the last two Wait
Declaration
int? LastPulseCountDelta { get; }
Property Value
Type | Description |
---|---|
int? |
Name
The display name of the synchronization provider.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
string |
Status
The status of the synchronization provider.
Declaration
SyncStatus Status { get; }
Property Value
Type | Description |
---|---|
Sync |
SyncRate
The pulse rate of the synchronization signal.
Declaration
FrameRate SyncRate { get; }
Property Value
Type | Description |
---|---|
Frame |
Methods
StartSynchronizing()
Begin listening for synchronization pulses.
Declaration
void StartSynchronizing()
StopSynchronizing()
Stop listening for synchronization pulses.
Declaration
void StopSynchronizing()
WaitForNextPulse()
Blocks execution on the current thread until the next synchronization signal pulse is received.
Declaration
bool WaitForNextPulse()
Returns
Remarks
This is expected to be called once per frame.