Ejemplo n.º 1
0
        private static void WindowOnRenderFrame(object sender, FrameEventArgs frameEventArgs)
        {
            StateEngine.Render();

            //WorldRenderer.RenderWorld(_world, _projection);

            Window.SwapBuffers();

            _fpsCounter++;
            _fpsTimer += frameEventArgs.Time;
            if (_fpsTimer >= 1)
            {
                //Logger.Debug("FPS: " + _fpsCounter / 1f);
                _fpsTimer  -= 1;
                _fpsCounter = 0;

                //Logger.Debug($"ChunksQueued: {_world.ChunksQueuedCount}, ChunksReady: {_world.ChunksReadyCount}, ChunksLoaded: {_world.ChunksLoadedCount}");
            }
        }