CACHING / Memory
https://www.sidefx.com/docs/houdini/dyno/cache.html
For a custom range, right click Start/End/Inc and choose Delete Channels. Now you can enter your own values.
1. Difference Between Cache SOP and File SOP
Cache SOP:
Saves geometry to system memory.
Very fast for playback and interaction.
Geometry is lost when the session is closed.
File SOP:
Saves geometry to disk.
Slower than Cache SOP.
Geometry is persistent and can be accessed in future sessions.
2. Difference Between File SOP and ROP Output Node
File SOP:
Saves geometry to disk as you play forward.
Suitable for saving intermediate results or specific frames.
Geometry ROP Output Node:
Designed to render geometry to disk over a specific frame range.
Used for final output, often with rendering or exporting sequences.
3. Working with Particles
Cache SOP:
Useful for caching particle results right after the POP network.
Allows for scrubbing back and forth and point cloud look-ups.
File SOP or Geometry ROP SOP:
Use these to write particle sequences to disk once you approve the behavior.
Ideal for saving final sequences and larger datasets.
Saving USD Sequences
USD Export Node:
When saving large animated sequences, switch from
.bgeo.scto the USD Export node.Toggle on the "Flush Data After Each Frame" parameter to manage RAM usage.
Although slower and with larger file sizes, this method helps reduce RAM consumption.
Ensure you update links and paths in USD nodes rather than
.bgeo.sc.
Using value clips?
https://www.sidefx.com/forum/topic/87086/
https://www.sidefx.com/docs/houdini/nodes/lop/geoclipsequence.html
Collision Caching
Issue: If you are working on a simulation and find that your collision sources are not updating, you can cache the collision data and read it back. This method allows you to see the changes in your simulation.
Problem: Running the entire simulation to update collisions can be time-consuming.
Solution: Check Part B for a more efficient approach.
For further details, refer to this SideFX tutorial on creating and caching colliders.


PART B:
CCreate a proxy collider. Cache it.
read it back like this:

And change this setting: (switch to volume ample)

Command line.
Caching with command line.
source: https://www.youtube.com/watch?v=38zCc1rB6m0
1 - hscript nameofyourscene.hip
2 - example:

source: https://www.sidefx.com/tutorials/rendering-from-the-command-line/
1 - Create a text file

2 - Run a hscript

Avoid Loading Heavy Caches into RAM: For very large caches, it’s better to avoid loading them into system memory. Set your cache memory to zero to prevent it from being loaded into RAM.

Save Checkpoints: To prevent losing progress in case of a crash during heavy simulations, set up checkpoints to save your progress at intervals. This way, you can resume from the last checkpoint rather than starting over.

Optimization Tips
Prune Outside of Camera View: Remove geometry and elements that are outside the camera view to optimize performance.
Delete Unnecessary IDs: Remove any IDs or attributes that are not needed for your simulation or render.
Compress VDBs: After processing, compress VDB files to 16-bit if appropriate for the material. This can help reduce file size and improve performance.
Source for Further Details: Check out this YouTube video on optimization for more information.

$HIP/render/`opname("../..")`/$OS/`$OS`_v01_$F4.exr
This expression saves rendered frames in a structured folder system. Here's a concise breakdown:
$HIP: Project directory.
opname("../.."): Name of the parent node.$OS: Current node's name.
v01: Version 1.
$F4: Frame number (4-digit padding).
.exr: File format (OpenEXR).
The final path looks like: /project/render/parentNode/currentNode/currentNode_v01_0001.exr