Exemple #1
0
        protected override void Draw(GameTime gameTime)
        {
            lock (LockForStateValidationOutput)
            {
                base.Draw(gameTime);
            }

            // Indicate that we have drawn at least one frame.
            this.HasTicked = true;

            // Unload unused chunks from memory.
            ChunkProvider.DiscardUnneededChunks();
            ChunkRenderer.DiscardUnusedChunks();
        }