#include "ofxCore.h" #define kOfxActionPurgeCaches "OfxActionPurgeCaches"
handlehandle to the plug-in instance, cast to an
inArgsis redundant and is set to NULL,
outArgsis redundant and is set to NULL.
The kOfxActionPurgeCaches is an action that may be passed to a plug-in instance from time to time in low memory situations. Instances recieving this action should destroy any data structures they may have and release the associated memory, they can later reconstruct this from the effect's parameter set and associated information.
For Image Effects, it is generally a bad idea to call this after each render, but rather it should be called after
. Some effects, typically those flagged with the
property, may need to cache information from previously rendered frames to function correctly, or have data structures that are expensive to reconstruct at each frame (eg: a particle system). Ideally, such effect should free such structures during the