Version 0.60.0

hint_cache

Suggests a solid for priority caching.

Signatures

  •   hint_cache s

Details

The hint_cache command is used to indicate to the caching system that a particular solid is a good candidate for caching. When a solid is marked with this command, the caching system is more likely to store its mesh data immediately after generation, which can prevent redundant mesh reconstructions and improve overall script performance.

This command does not produce any output or modify the solid itself. It merely acts as a hint to the system. The actual decision to cache the solid still resides with the caching system's internal logic, which takes into account various factors such as available memory and the complexity of the solid.

Example

 solid complexShape = complexConstruction()
 hint_cache complexShape
 // The complexShape solid is now marked for priority caching.
 

Note

Use the hint_cache command judiciously, as excessive caching can lead to increased memory usage. It is most beneficial when applied to solids that are reused frequently and are expensive to generate.

Parameters

s

The variable representing the solid to be cached.

See also

🗙

Search results for