Click or drag to resize
DigitalRuneRenderTargetPoolFrameLimit Property
Gets or sets the number of frames a recycled render target will be cached before it is released.

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

Property Value

Type: Int32
The number of frames a recycled render target will be cached before it is released. The default value is 10.
Remarks
When a render target is recycled (see Recycle(RenderTarget2D)) and re-added to the pool of render targets, a frame counter for this render target is set to 0. Each frame the counter of all render targets in the pool is incremented. If a counter gets equal to or larger than FrameLimit, the render target is disposed. This mechanism is used to avoid that render targets, which are not needed anymore, are kept alive.
See Also