Simulation cache

Also known as: simulation baking

On this page 7

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 typeCached dataTypical size per frame
Rigid bodyPosition, rotation, scale per pieceKilobytes to a few megabytes
ClothDeformed vertex positions and normalsA few megabytes
HairCurve point positions per strandTens of megabytes
Liquid (FLIP)Particles plus surface mesh or level setHundreds of megabytes
Smoke and fireVolume grids for density, heat, velocityHundreds of megabytes to gigabytes
Typical cached data by effect type

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.

FormatMain contentTypical role
AlembicAnimated meshes, curves, points, transformsExchange of deforming geometry
OpenVDBSparse volumetric gridsSmoke, fire, clouds, fluid surfaces
Universal Scene DescriptionLayered scene data with time samplesLarge pipelines, assembly and layout
Houdini geometry (bgeo)Full point, primitive and attribute dataNative caching inside Houdini
Point cache formatsPer-vertex positions over timeLightweight deformation playback
Common cache formats and what they store

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.

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.

TechniqueWhat is storedKey difference
Simulation cacheSolver output per framePhysics result is frozen and repeatable
Live simulationNothing, solved on demandFlexible but slow and possibly nondeterministic
Keyframe animation bakeEvaluated transforms from rigs or constraintsRecords animation, not physics
Texture or lighting bakeSurface data in image mapsStores shading, not motion over time
Disk cache in a rendererTemporary render dataSpeeds rendering, not part of the scene
Simulation caching versus neighboring techniques

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.

SituationRecommended approachReason
Blocking out timingLow-resolution cache, short rangeFast iteration with stable playback
Final render on a farmFull-resolution cache before renderingRender nodes must not re-solve physics
Effect handed to another toolExport Alembic or OpenVDBOpen formats travel between applications
Long shot that may crashCache with periodic restart filesResume without losing hours of solving
When to bake a simulation cache

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.