However this is CompositorInstance::setEnabled code:Disabling a compositor stops it from rendering but does not free any resources. This can be more efficient than using removeCompositor and addCompositor in cases the filter is switched on and off a lot.
Code: Select all
if (mEnabled != value)
{
mEnabled = value;
// Create of free resource.
if (value)
{
createResources(false);
}
else
{
freeResources(false, true);
}
/// Notify chain state needs recompile.
mChain->_markDirty();
}
I get a serious spike each time I look to the sun again, which is annoying.
I'm probably going to fix this myself asap as I really need this functionality to work the way it should be.
Suggestions are appreciated.