Click or drag to resize
CanvasDeviceLowPriority Property
Reduces the priority of drawing work submitted to this device.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version:
public bool LowPriority { get; set; }

Property Value

Type: Boolean

Low priority devices allow their drawing work to be preempted if any other, normal priority devices attempt to draw at the same time. When in low priority mode Direct2D may also split up drawing work into a larger number of smaller batches or tiles, in order to increase the opportinuties for GPU preemption.

This can be useful for apps that draw to more than one device at a time, where one thread does expensive, long running drawing work at the same time as the UI thread or a dedicated animation thread is using a different device to update the display. Setting the long running device to low priority minimizes its interference with the display animation.

See Also