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(); }
public void Update() { _globalGpuInstancingContainer.DrawFrame(); }