Click or drag to resize
DigitalRuneOceanWavesCpuSize Property

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

Property Value

Type: Int32
The simulation size for CPU queries using GetDisplacement(Single, Single, Vector3F, Vector3F). Must be a power of two. The default value is 16.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionvalue is less than 2.
ArgumentExceptionvalue is not a power of two.
Remarks

If EnableCpuQueries is , the ocean wave simulation is only performed on the GPU. If EnableCpuQueries is , the ocean wave simulation is performed on the GPU and the CPU. The CPU simulation is necessary to enable queries using GetDisplacement(Single, Single, Vector3F, Vector3F).

TextureSize defines the size of the simulation grid on the GPU; CpuSize defines the size of the simulation grid on the CPU. Since the CPU simulation is slower CpuSize should be a lot smaller than TextureSize (e.g. 16 vs. 256).

See Also