Table of Contents

Class ThreadBufferManagerConfig

Namespace
HelixToolkit.SharpDX.Core
Assembly
HelixToolkit.SharpDX.dll
public static class ThreadBufferManagerConfig
Inheritance
ThreadBufferManagerConfig
Inherited Members

Properties

MaximumSizeToRetainMb

Gets or sets the maximum size to retain the buffer in memory. If requested size is larger than this value, buffer will be temporary instead of being retained for reuse.

public static int MaximumSizeToRetainMb { get; set; }

Property Value

int

The maximum size to retain mb.

MinimumAutoReleaseThresholdSeconds

Gets or sets the minimum buffer release threshold by seconds. Buffer will not be released automatically if it has been used within last N seconds.

public static int MinimumAutoReleaseThresholdSeconds { get; set; }

Property Value

int

The minimum buffer release threshold by seconds.

MinimumSizeToRetainMb

Gets or sets the minimum size to retain the buffer in memory. If requested size is smaller than this value, buffer will always be retained for reuse.

public static int MinimumSizeToRetainMb { get; set; }

Property Value

int

The minimum size to retain mb.

SizeReductionDividend

Gets or sets the size reduction multiplier. If buffer is not being used more than MinimumAutoReleaseThresholdSeconds seconds, and new request size is smaller than buffer size / SizeReductionDividend but larger than MinimumSizeToRetainMb, buffer will be released after usage.

public static float SizeReductionDividend { get; set; }

Property Value

float

The size reduction multiplier.