public override void Update() { #if PIPELINE_STATS results = statPool.GetResults(); #endif if (rebuildBuffers) { buildCommandBuffers(); rebuildBuffers = false; } if (showUI) { vkvgDraw(); } }
public override void Update() { if (reloadModel) { renderer.LoadModel(transferQ, modelPathes[curModelIndex]); reloadModel = false; camera.Model = Matrix4x4.CreateScale(1f / Math.Max(Math.Max(renderer.modelAABB.Width, renderer.modelAABB.Height), renderer.modelAABB.Depth)); updateViewRequested = true; rebuildBuffers = true; #if WITH_SHADOWS renderer.shadowMapRenderer.updateShadowMap = true; #endif } base.Update(); if (++frameCount > 20) { NotifyValueChanged("fps", fps); frameCount = 0; } results = statPool.GetResults(); }
public override void Update() { #if DEBUG results = statPool.GetResults(); #endif }
public override void Update() { results = statPool.GetResults(); vkvgDraw(); }