A simulation cache is a set of files that stores the precomputed results of a physics or procedural simulation, frame by frame, so the effect can be played back, rendered and edited downstream without solving it again. In 3D graphics & animation, and particularly in simulation & effects work, creating the cache is often called simulation baking, and it turns an expensive, unpredictable calculation into fixed, repeatable data.
Caching matters because solvers for fluids, cloth, hair, smoke and destruction can take minutes or hours per frame and may produce slightly different results on each run. Once baked, the cache becomes the single source of truth that lighting, rendering and compositing all read.
How a simulation cache is created and read
A solver advances a simulation step by step through time, and each step depends on the state of the previous one. During baking, the software writes the resulting state for every frame, and sometimes for every simulation substep, into one file per frame or into a single container file. On playback, the application reads the stored data instead of running the solver, so scrubbing the timeline becomes nearly instant.
What gets stored depends on the effect. A rigid body cache needs only transforms per object, while a fluid cache may hold millions of particles or dense voxel grids for density, temperature and velocity. The stored attributes decide what downstream steps can do: without velocity data, for example, a renderer cannot produce correct motion blur.
The table below shows the data a cache typically holds for common effect types.
| Effect type | Cached data | Typical size per frame |
|---|---|---|
| Rigid body | Position, rotation, scale per piece | Kilobytes to a few megabytes |
| Cloth | Deformed vertex positions and normals | A few megabytes |
| Hair | Curve point positions per strand | Tens of megabytes |
| Liquid (FLIP) | Particles plus surface mesh or level set | Hundreds of megabytes |
| Smoke and fire | Volume grids for density, heat, velocity | Hundreds of megabytes to gigabytes |
Simulation cache formats
A cache can be saved in a proprietary application format or in an open interchange format. Native formats preserve every solver detail and allow a simulation to resume from a stored frame, while open formats let different applications in a pipeline read the same result.
| Format | Main content | Typical role |
|---|---|---|
| Alembic | Animated meshes, curves, points, transforms | Exchange of deforming geometry |
| OpenVDB | Sparse volumetric grids | Smoke, fire, clouds, fluid surfaces |
| Universal Scene Description | Layered scene data with time samples | Large pipelines, assembly and layout |
| Houdini geometry (bgeo) | Full point, primitive and attribute data | Native caching inside Houdini |
| Point cache formats | Per-vertex positions over time | Lightweight deformation playback |
The choice is a trade-off between fidelity and portability. A studio often keeps a native cache for the effects artist and exports a reduced Alembic or OpenVDB version for lighting, keeping only the attributes the renderer actually needs.
Simulation cache compared with related techniques
A simulation cache is often confused with other forms of stored or precomputed data. The distinction lies in what is stored and whether it can still change.
| Technique | What is stored | Key difference |
|---|---|---|
| Simulation cache | Solver output per frame | Physics result is frozen and repeatable |
| Live simulation | Nothing, solved on demand | Flexible but slow and possibly nondeterministic |
| Keyframe animation bake | Evaluated transforms from rigs or constraints | Records animation, not physics |
| Texture or lighting bake | Surface data in image maps | Stores shading, not motion over time |
| Disk cache in a renderer | Temporary render data | Speeds rendering, not part of the scene |
Neighboring Topic concepts interact with caching. Particle instancing reads cached points to place copies of geometry at render time, and collider objects must be final before baking, because any change to them invalidates the stored result.
Managing simulation caches in production
Effective cache management treats each bake as a versioned asset. Artists usually work in stages: a fast low-resolution pass to approve timing, then a high-resolution bake for final frames, and finally post-simulation layers such as whitewater or secondary debris that read the primary cache as input.
- Store caches on fast shared storage and keep them outside the scene file to avoid huge project files.
- Name folders by shot, effect and version number, so lighting can always point to an approved bake.
- Write only the attributes needed downstream, such as position, velocity and ID, to reduce disk use.
- Use compression and sparse grids for volumes, which can reduce size by an order of magnitude.
- Cache multiple wedge variations overnight when a supervisor needs to choose between options.
The decision table below helps choose when and how to bake.
| Situation | Recommended approach | Reason |
|---|---|---|
| Blocking out timing | Low-resolution cache, short range | Fast iteration with stable playback |
| Final render on a farm | Full-resolution cache before rendering | Render nodes must not re-solve physics |
| Effect handed to another tool | Export Alembic or OpenVDB | Open formats travel between applications |
| Long shot that may crash | Cache with periodic restart files | Resume without losing hours of solving |
Limitations and common caching mistakes
The main limitation of a simulation cache is that it is frozen: any change to the emitter, colliders, forces or frame rate requires a new bake. Caches also consume very large amounts of storage, and a single fluid shot can occupy terabytes across versions.
Frequent mistakes include caching with the wrong frame range or frame rate, which causes sudden pops at the end of a shot, and omitting velocity or ID attributes, which breaks motion blur and point tracking. Another common error is editing the source scene after baking without re-caching, so the render silently uses an outdated result. Clear versioning and a recorded set of solver settings for each bake prevent most of these problems.
The simple explanation
Computing a realistic splash or a falling building takes a computer a long time. A simulation cache saves the answer once, like recording a live performance. After that, the computer just plays the recording.
This makes the effect fast to replay and always identical. Artists can light and render it many times without waiting. The catch is that a recording cannot change, so any new idea means recording it again.
How it is used in practice
An effects artist on a commercial creates a 240-frame shot of a wave crashing over a pier. The FLIP fluid simulation with about 60 million particles needs roughly 9 hours to solve on a workstation. The artist first bakes a low-resolution version in 20 minutes to approve timing with the director, then runs the full-resolution bake overnight.
The final cache, about 1.5 terabytes including a meshed surface and a whitewater layer, is written to shared storage as versioned files. The lighting artist loads the OpenVDB and Alembic exports, while the render farm distributes frames across 40 machines. Because no machine has to re-solve the physics, every frame matches perfectly and the shot renders in a single night.