private void SetNewCompiledSystem(LSystemStepper newSystem) { if (!useSharedSystem) { compiledSystem?.Dispose(); } compiledSystem = newSystem; }