Ejemplo n.º 1
0
        public void InitializeGlobalInstancingContainer()
        {
            var globalInstancingContainer = new GlobalGpuInstancingContainer();

            _gameInitializationFields.SetField(globalInstancingContainer);

            var updatableElement = new FieldBasedUltraUpdatable()
            {
                StartCameraField  = (currentCamera) => { globalInstancingContainer.StartThread(); },
                UpdateCameraField = (currentCamera) =>
                {
                    globalInstancingContainer.DrawFrame();
                    globalInstancingContainer.FinishUpdateBatch();
                }
            };

            _updatableContainer.AddUpdatableElement(updatableElement);
        }
 public void Update()
 {
     _globalGpuInstancingContainer.FinishUpdateBatch();
     _globalGpuInstancingContainer.DrawFrame();
     _designBodySpotUpdaterProxy.SynchronicUpdate();
 }
Ejemplo n.º 3
0
 public void Update()
 {
     _globalGpuInstancingContainer.DrawFrame();
 }