Пример #1
0
        public void WorldUpdate()
        {
            bool worldRenderedNow = WorldRendererUtility.WorldRenderedNow;

            this.renderer.CheckActivateWorldCamera();
            if (worldRenderedNow)
            {
                Profiler.BeginSample("ExpandableWorldObjectsUpdate()");
                ExpandableWorldObjectsUtility.ExpandableWorldObjectsUpdate();
                Profiler.EndSample();
                Profiler.BeginSample("World.renderer.DrawWorldLayers()");
                this.renderer.DrawWorldLayers();
                Profiler.EndSample();
                Profiler.BeginSample("World.dynamicDrawManager.DrawDynamicWorldObjects()");
                this.dynamicDrawManager.DrawDynamicWorldObjects();
                Profiler.EndSample();
                Profiler.BeginSample("World.features.UpdateFeatures()");
                this.features.UpdateFeatures();
                Profiler.EndSample();
                Profiler.BeginSample("NoiseDebugUI.RenderPlanetNoise()");
                NoiseDebugUI.RenderPlanetNoise();
                Profiler.EndSample();
            }
            Profiler.BeginSample("WorldComponentUpdate()");
            WorldComponentUtility.WorldComponentUpdate(this);
            Profiler.EndSample();
        }
Пример #2
0
        public void WorldUpdate()
        {
            bool worldRenderedNow = WorldRendererUtility.WorldRenderedNow;

            renderer.CheckActivateWorldCamera();
            if (worldRenderedNow)
            {
                ExpandableWorldObjectsUtility.ExpandableWorldObjectsUpdate();
                renderer.DrawWorldLayers();
                dynamicDrawManager.DrawDynamicWorldObjects();
                features.UpdateFeatures();
                NoiseDebugUI.RenderPlanetNoise();
            }
            WorldComponentUtility.WorldComponentUpdate(this);
        }