Skip to content
Technology & experiments

Water simulation: baking a meteor impact on Mac and PC

Sergei Almazov4 min read

A thin jet of water and a cloud of spray rise from the center of the simulated pool after impact
Rebound jet from the original Mac run at step 139, about two seconds into the simulation.

In my September update, I used a meteor impact to see how Atlántica handled a sudden displacement of water. This time I went back to that scene with a different question. If I speed up the pressure solve, how much sooner can I open the finished cache in Blender?

I ran the same PF-FLIP setup on an Apple M5 Pro using Hybrid Metal and on a PC with an Intel i7-13700K and RTX 5090 using the experimental packed CUDA pressure path. Each run baked 600 accepted steps on a 128 × 128 × 96 grid in an 8 × 8 × 6 m domain, with the water surface and whitewater cached during the bake.

Where the bake time went

The Mac finished the bake in 2 h 54 min and the PC took 3 h 17 min. On the PC, the pressure stage took 34 minutes in total, down from 106 on the Mac. That’s a 68% reduction, and it left the native simulation about four minutes ahead. By the time the cache was ready, the PC was 23 minutes behind.

Three parts of the bake accounted for most of the extra time on the PC.

  • Transferring particles to the sparse grid on the CPU took 61 minutes on the PC and 26 on the Mac.
  • Native work outside the individually logged stages took 48 minutes on the PC and 17 on the Mac.
  • The surface and cache stage combines reconstruction, serialization and writing. I’ll need to time those separately to see where the extra 26 minutes came from.

This was one bake per configuration. The Mac used Blender 5.2.1 with 18 reported TBB threads, and the PC used Blender 5.2.2 with 24. Ten critical source files matched after accounting for Windows line endings. I’d need a controlled run to separate the hardware, platform and solver effects.

Where the time went

Cumulative minutes for the 600 accepted steps on each machine.

Cumulative stage timings in minutes
StageMacPC
Pressure solve106.2133.84
CPU-sparse P2G25.5661.03
Other exported stages2.363.42
Other native work16.7648.33
Surface and cache22.0647.68
Other add-on work1.022.87
Total173.98197.18

The PC took 13.3% more time for the complete bake.

Why the PC finished later

PC minus Mac, in minutes. Bars to the left saved time. Bars to the right added time.

Pressure solve
−72.37
CPU-sparse P2G
+35.47
Other exported stages
+1.06
Other native work
+31.57
Surface and cache
+25.62
Other add-on work
+1.85

Net change for the complete bake +23.21 min

How the cost changed through the shot

Explore all 1,200 steps. At a given simulated time, the chart pairs the nearest sample from each run.

Loading the recorded steps…

Download all 1,200 steps (CSV)

From approach to settling

Mean seconds per step in the first nine simulated seconds. Each cell lists Mac / PC.

PhaseStepsNative (s)Pressure (s)
Approach 0–0.8 s48 / 486.33 / 13.961.94 / 3.29
Impact & rebound 0.8–1.6 s60 / 5513.69 / 14.239.35 / 3.29
Jet & waves 1.6–3 s91 / 8617.22 / 14.5712.88 / 3.41
Propagation 3–6 s180 / 18015.42 / 14.7711.00 / 3.43
Late evolution 6–9 s180 / 18016.10 / 14.8211.47 / 3.39

Looking at the rebound

The early motion looked similar in both runs. Around two seconds in, the Mac render shows a taller, narrower jet, while the PC render shows a lower crest and a different spray pattern. The runs used adaptive timesteps, so I matched the frames by simulated time. You can follow the shot from approach to settling in the comparison below.

Matched moments

Original frames nearest to each event’s simulated time.

Rebound jet · Mac, step 139Rebound jet · PC, step 129
MacStep 139 · 1.996312 s
PCStep 129 · 1.999400 s

Original renders

Mac · Hybrid Metal. The preview shows step 139 at 1.996312 s. The original perspective render runs from the start.
PC · Experimental CUDA. The preview shows step 129 at 1.999400 s. The original perspective render runs from the start.

I rendered the original six sequences in Cycles at 1920 × 1080, 24 fps and 512 samples. Each movie is 25 seconds long and advances one simulation step per frame. Those steps cover 9.680 seconds of simulated time on the Mac and 9.849 on the PC. The bake timings end before rendering. I paused the Mac top render, so its wall time would include the pause.

Original side views (Mac / PC) and top views (Mac / PC).

Lighting studies

After the benchmark, I went back to the same caches to see how lighting and camera angle change the way the splash reads. These Cycles renders reuse the baked simulation.

Blue-hour facility · Mac cache, perspective view. Cool light across the pool catches the rebound jet and spray.
Blue-hour facility · Mac cache, overhead view. From above, the spray fans out across the blue pool.
Amber and cyan · PC cache, perspective view. Warm reflections trace the waves across the darker water.
Amber and cyan · PC cache, overhead view. From above, the reflections show how the surface moves around the impact.

Checking the caches

All 600 pressure solves converged on each machine, and both runs recorded zero drift in the tracked liquid volume. The PC stayed on the packed CUDA path for every step. The two caches passed the recorded numerical checks, and I still have to find out where the difference in the jet and spray comes from.

What the caches recorded

Recorded metricMacPC
Simulated duration9.679671 s9.849423 s
Pressure solves converged600 / 600600 / 600
Failed-quality frames00
Peak post-projection divergence0.1000420.100021
Peak all-particle CFL8.9597.590
Peak absolute per-step mass delta0.0768%0.0664%
Peak tracked-liquid drift0%0%
Peak represented-liquid loss0%0%
Median pressure iterations124369
Reported TBB threads1824
Peak bake process RSSUnrecorded1.89 GiB
Experimental CUDA pressure fallbacksN/A0

The CFL peak includes air particles. The two pressure paths use different preconditioners, so iteration counts describe solver work. The PC memory figure covers host-process RSS.

What I’m checking next

I’ll start by profiling the sparse particle-to-grid transfer on the PC and timing surface reconstruction separately from serialization and writing. Then I want to compare Hybrid and Experimental CUDA on the same PC. Then I can compare equivalent Hybrid paths across machines, controlling the seed, thread policy and simulated duration.

For more on the solver and how it fits into Blender, see my PF-FLIP write-up.