Share via


DisplayDevice.CreatePeriodicFence(DisplayTarget, TimeSpan) Method

Definition

Creates a DisplayFence object that is automatically signaled by the system with an incrementing value at a certain time every vertical refresh cycle.

public:
 virtual DisplayFence ^ CreatePeriodicFence(DisplayTarget ^ target, TimeSpan offsetFromVBlank) = CreatePeriodicFence;
DisplayFence CreatePeriodicFence(DisplayTarget const& target, TimeSpan const& offsetFromVBlank);
public DisplayFence CreatePeriodicFence(DisplayTarget target, System.TimeSpan offsetFromVBlank);
function createPeriodicFence(target, offsetFromVBlank)
Public Function CreatePeriodicFence (target As DisplayTarget, offsetFromVBlank As TimeSpan) As DisplayFence

Parameters

target
DisplayTarget

The DisplayTarget (which must be currently active) whose vertical refresh cycle will be used by the periodic fence.

offsetFromVBlank
TimeSpan TimeSpan

A time offset from the display controller's V-blank interrupt to signal the fence before every vertical refresh cycle.

Returns

A DisplayFence object.

Applies to