resetInternalState method
Resets the engine's internal caches.
This is primarily intended for test harnesses to ensure test isolation and prevent cached offscreen render targets or other transient engine state from leaking across consecutive tests.
Production applications should not invoke this method directly. Doing so can cause unnecessary texture reallocation churn and frame hitches. Production applications should instead rely on platform low-memory notifications, which automatically purge caches under memory pressure.
Implementation
void resetInternalState() => _resetInternalState();