Click or drag to resize
DigitalRuneBillboardRendererEnableOffscreenRendering Property
Gets or sets a value indicating whether off-screen rendering is enabled. (Requires HiDef profile.)

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

Property Value

Type: Boolean
if billboards and particles are rendered into an off-screen buffer; otherwise, . The default value is .
Remarks

When EnableOffscreenRendering is set, all particles are rendered into a low-resolution off-screen buffer. The final off-screen buffer is upscaled and combined with the scene.

This option should be enabled if the amount of particle overdraw causes a frame rate drop. Off-screen rendering reduces overdraw, at the expense of additional image processing overhead and image quality.

Important: A downsampled version of the depth buffer (half width and height) needs to be stored in renderContext.Data[RenderContextKey.DepthBufferHalf].

When off-screen rendering is used, the hardware depth buffer information is lost. This renderer restores the depth buffer when it combines the off-screen buffer with the render target in the final step. The restored depth buffer is not totally accurate. For the rebuild step the renderer will use the same parameters (e.g. near and far bias) as the current RebuildZBufferRenderer stored in renderContext.Data[RenderContextKey.RebuildZBufferRenderer].

See Also