PF_GetCurrentState always invalidates cache. Is this normal?
Hello there,
I'm working on an effect plug-in and ran into a weird issue. I am keeping track of the PF_State of a parameter to detect when its state changes. Shouldn't be a problem with PF_GetCurrentState and PF_AreStatesIdentical.
It seems to work great, except for one problem; the cache always gets invalidated the moment PF_GetCurrentState is called. Which means everything in the timeline is forced to re-render, rather than just the frames that have changed. Commenting out that exact function call fixes the problem and results in normal caching behaviour, so this doesn't seem to be related to anything else the plugin is doing. Is this normal behaviour for PF_GetCurrentState? Here's how I call the function:
PF_State currentState;
pUtilSuite->PF_GetCurrentState(in_data->effect_ref, 7, NULL, NULL, ¤tState);My expectation from the docs is, that the returned PF_State is simply some hashed representation of the state. Does this function have some undocumented side-effect of messing with the cache?
