Skip to content

Physics quality and buoyancy timing

Every object with a DRW Buoyancy component reads the water under its shapes and gets pushed by it. This page explains the settings that decide how often that happens and how to keep many floating objects affordable. They are under DRW Buoyancy > Simulation and DRW Buoyancy > Optimization.

Two things are the same whatever you choose:

  • Ocean answers arrive one or two frames late. Rivers, pools and lakes answer at once. No setting changes this; water queries behave the same way.
  • Buoyancy runs on the server (or in single player). Clients receive the resulting movement through replication.
ModeBehaviorWhen to use
Fixed Timestep (default)Forces are calculated at Calculation Rate Hz and applied every frame. Behaves the same at any frame rate.Always, unless you have a reason not to. The best choice for multiplayer.
Event Tick (Legacy)Forces are calculated and applied once per frame, so the work grows with the frame rate. Can jitter in multiplayer.Only for projects built around the old behavior. Calculation Rate Hz and Interpolation Strength are hidden in this mode.
Fixed Timestep + Physics Substep (DO NOT USE IT)A placeholder for a future feature. Forces are calculated but never applied, so objects do not float.Never.

Calculation Rate Hz (default 30, range 1 to 120, Fixed Timestep only) is how many times per second DRW calculates the forces.

  • Lower rates cost less CPU but react to the waves more coarsely. Background props that only bob can run well below 30.
  • Higher rates follow fast, short waves and quick impacts more closely, at more CPU per body.
  • For multiplayer, a rate close to your network update rate (often 20 to 30 Hz) is a good start.

Interpolation Strength (default 0.15, range 0 to 1, hidden in Event Tick mode) blends the forces of the two most recent calculations before they are applied each frame. At 0 the older one is used, at 1 only the newest. Lower values lean on the older calculation, which adds a little delay; higher values react sooner. Leave it at the default unless a body visibly reacts late to the waves, then raise it.

Physics Quality (default Async) sets how soon a body’s buoyancy update runs once it is due.

ValueBehavior
Async (default)The update runs after a short wait. The normal setting for every floating object.
MixedCurrently behaves exactly like Async.
RuntimeThe update runs without that wait.

The amount of work per update is the same in all three modes; only the timing changes. It does not change the one or two frames that ocean answers take.

Use Async for everything by default. If one important body, such as the player’s boat, visibly lags behind the waves, try Runtime on that body only.

EDRWPhysicsQuality and EDRWBuoyancyUpdateMode list the values.

The cost of a floating object grows with its number of shapes, each shape’s Water Sample Count, and Calculation Rate Hz. With many objects in a level:

  • Use as few shapes as the object needs. Small props are often fine with one shape.
  • Set Water Sample Count to 1 on small props: they then bob without feeling wave slopes, and use much less of the level’s water sample budget.
  • Lower Calculation Rate Hz on objects nobody looks at closely.
  • Turn on Sleep When Out Of Sight (below) for objects that can rest while unseen.

The whole level shares a water sample budget (4096 by default, drw.WaterQuery.MaxQueries). See Making objects float.

With Sleep When Out Of Sight on, a body that is in the water and has been out of every player’s sight for Out Of Sight Delay goes to sleep: its physics bodies stop and DRW skips its buoyancy entirely. When a player looks at it again, it wakes on the current wave. It runs on the server; clients send their camera view to the server for it automatically.

SettingDefaultRangeWhat it does
Sleep When Out Of SightoffTurns the feature on. Ignored when Playable Character is on.
Out Of Sight Delay3 s0 to 60How long the body must stay out of sight, while in the water, before it sleeps.
Always Awake Radius10000 cm (100 m)0 to 100000Within this distance of any player’s camera the body always stays awake, even behind the camera.
Sight Half Angle75°10 to 180Half-angle of the view cone that counts as in sight. Generous by default because the server does not know each client’s field of view or screen shape.
Max Sight Distance0 (no limit)0 to 10000000 cmBeyond this distance the body counts as out of sight even inside the view cone.

How it behaves:

  • Sight is a view cone around each player’s camera. Walls and terrain do not hide a body.
  • Waking by sight: if the body has not moved while asleep, it wakes at the current water level and moving with the water, so it does not pop. It picks up the waves within about a second.
  • Waking by contact: anything that wakes its physics (a collision, a constraint, a thrust force) wakes its buoyancy too, from where it is. If that happens right after it fell asleep, it waits longer before trying to sleep again, and longer each time it repeats.
  • Keep Awake (Blueprint) keeps the body awake and wakes it if it sleeps. Call it every tick while something drives the body, such as AI thrust or a scripted path; it may sleep again once Out Of Sight Delay has passed since the last call. DRW’s boats call it themselves while they have input.
  • Is Sleeping Out Of Sight (Blueprint) is true while the body sleeps, including the short wake-up.