예제 #1
0
        public override void Update()
        {
#if PIPELINE_STATS
            results = statPool.GetResults();
#endif
            if (rebuildBuffers)
            {
                buildCommandBuffers();
                rebuildBuffers = false;
            }
            if (showUI)
            {
                vkvgDraw();
            }
        }
예제 #2
0
        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();
        }
예제 #3
0
        public override void Update()
        {
#if DEBUG
            results = statPool.GetResults();
#endif
        }
예제 #4
0
 public override void Update()
 {
     results = statPool.GetResults();
     vkvgDraw();
 }