Click or drag to resize
DigitalRuneD3DImagePresentationTargetIsSynchronized Property
Gets or sets a value indicating whether the Direct3D 11 device is synchronized with WPF. This is a dependency property.

Namespace: DigitalRune.Graphics.Interop
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public bool IsSynchronized { get; set; }

Property Value

Type: Boolean
if the Direct3D 11 device is synchronized with WPF; otherwise, . The default value is .
Remarks

By default, the Direct3D 11 device used for rendering is not synchronized with Direct3D 9 (WPF). Direct3D 11 and Direct3D 9 run asynchronously. The image shown in WPF may be one or more frames old. Setting IsSynchronized ensures that the devices run in sync and that WPF always shows to current frame.

However, synchronizing Direct3D 11 and Direct3D 9 is costly. When switching from Direct3D 11 to Direct3D 9 (and vice versa) the CPU needs to be blocked until the GPU is flushed. This reduces performance.

See Also