Click or drag to resize
DigitalRuneOceanWavesEnableCpuQueries Property

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

Property Value

Type: Boolean
if CPU queries using GetDisplacement(Single, Single, Vector3F, Vector3F) are enabled; otherwise, . The default value is .
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