Tidal Compute
The GPU FFT simulation that drives every wave.
TidalFFTCompute runs the FFT cascades that generate the water's motion and owns the
active TidalProfile asset. It is typically the
most expensive part of Tidal, so in most projects you should use one TidalFFTCompute and share it across all bodies.
- Runs the three FFT cascades (large swells, mid waves, ripples) on the GPU each frame.
- Owns and applies the active
TidalProfile(Local + Swell spectra). - Feeds the surface shading, mesh displacement, and the physics-field readback.
Fields
| Field | Type · Default | Description |
|---|---|---|
| Profile | TidalProfile · required | The water profile asset describing the wave
spectrum. Create one via Assets → Create → Tidal 2 → Water Profile FFT (Best Quality). |
| Is Dynamic | bool · on | Re-initialises the cascades when profile values change live. Turn off for static water that never changes its spectrum at runtime; you can toggle it from code when needed. |
| Size | int (FFT texture size) | Resolution of the FFT simulation textures (e.g. 64 / 128 / 256). The single biggest simulation quality / cost knob. Changing it at runtime rebuilds GPU resources safely. |
- FFT Size can be changed at runtime. All GPU resources rebuild and every dependent system - mesh, shading, and the physics field - rebinds automatically.
- No manual re-wiring is needed; the rebuild is safe mid-play.
Wave compute architecture New in v2.1
In v2.1 the wave simulation was refactored. TidalCompute is now
TidalFFTCompute, and it derives from a new abstract base,
TidalWaveCompute. Every consumer (mesh, shading, physics field) reads
the wave textures through the ITidalWaveCascade contract, so other wave
simulations can plug into the same pipeline in future versions.
TidalCompute
components reconnect as TidalFFTCompute on their own. Only scripts that name the type need
edits. See Upgrading.
| Member | Type | Notes |
|---|---|---|
TidalWaveCompute | abstract class | Base for wave simulations: cascade0/1/2, LengthScale0/1/2,
Size, ResourceVersion, MaxWaveHeightEstimate,
Chop, Init(), ReleaseResources(),
RebuildResources(). |
ITidalWaveCascade | interface | Texture contract: Displacement, Derivatives,
Turbulence (RenderTextures). |
cascade0/1/2 | ITidalWaveCascade (read-only) | Were public WaveFFTCascade fields in v2.0. Code that only reads the textures
still compiles. |
FFTCascade0/1/2 | WaveFFTCascade | Typed access to FFT-specific cascade members on TidalFFTCompute. |
ResourceVersion | version counter | Bumped whenever the wave textures are re-allocated. Compare it to know when to re-bind. |
TidalMeshSharedSettings.TCompute | TidalWaveCompute | Was typed TidalCompute in v2.0. |
If a body has no simulation assigned, its inspector warns: "A wave compute is required: assign a TidalFFTCompute."
TidalFFTCompute owns the profile, sharing one compute
across bodies means those bodies share the same wave spectrum. To give a region calmer water without
a second simulation, use a Damping Zone instead.