internal void InitAndRegister(MyInstanceComponent instance, MyModels models, bool isVisible, MyVisibilityExtFlags visibilityExt, MyCompatibilityDataForTheOldPipeline compatibilityData)
        {
            MyRenderProxy.Assert(!m_instances.Contains(instance));

            instance.InitInternal(models, isVisible, visibilityExt, compatibilityData);
            m_instances.Add(instance);
        }
        internal void RemoveInternal(MyInstanceComponent instance)
        {
            MyRenderProxy.Assert(m_instances.Contains(instance));

            m_instances.Remove(instance);
        }