Skip to content

PlatformAPI reference

Interface IPreciseDelay

Namespace: MicroEngine.Platform
Assembly: MicroEngine.Platform.dll
Guide: The platform host

A precise way to wait, used by the loop to hold a frame back until the frame limit allows it. A capability (TryGetCapability``1) of hosts that can block (CanBlock); without it the loop sleeps and then spins for the last milliseconds.

C#
public interface IPreciseDelay

Methods

Delay(double)

Blocks for about seconds, precisely enough to pace frames.

C#
void Delay(double seconds)

Parameters

seconds double