releaseRenderTargetsOnMemoryPressure top-level property Rendering

bool releaseRenderTargetsOnMemoryPressure
getter/setter pair

Whether the automatic release runs when the platform reports pressure.

On by default, which matches PaintingBinding clearing the image cache and ServicesBinding clearing rootBundle on the same signal. Set it false if an app would rather hold the pool and give memory back another way, or pick its own moment with releaseTransientRenderTargets. The listener stays registered either way, so this can be flipped at any time.

Implementation

bool releaseRenderTargetsOnMemoryPressure = true;