Jump to content

Optimizing Smoke SIMs

Recommended Posts

As I venture deeper into smoke &pyro one issue I am facing are the extremely LONG sim times and inefficient playback times of my cached sims.

I am using a voxel density of .01 and show 216 million density and collision voxels.
I've enabled ‘Use OpenCL’ on my Pyro solver.

Even after caching a 204 frame simulation which takes several hours with a 12 core Threadripper and dual Titan Volta GPUs I can only play back the simulation in the Geometry Viewer at about 1 fps.

This workflow simply makes it impossible to proceed and iterate.

I need the .01 voxel density otherwise the resulting smoke sims appear too ‘jagged’.

Attached are screen grabs of my Pyrosolver and caching SOPs info details.

Are there any tips or workarounds that people use to optimize smoke & pyro workflows? Are 216 million voxels simply too many?



Share this post

Link to post
Share on other sites

All depends on what do you want to do with your velocity field later. General ways is:

1. Split velocity and density into different caches.

2. Save velocity with volume compress as 16bit float.

3 . Convert your volumes to vdb.

4. Clamp your velocity with vdb clip using density as mask.

  • Like 1

Share this post

Link to post
Share on other sites

Thanks guys! Great info. I know that by simply reducing the voxel count you also change the dynamics of the simulation so will explore these options.

Edited by art3mis

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now