protected override void PreBegin(GameContext context) { // Process a single texture block if the FPS is higher than 30. //if (context.GameTime.ElapsedGameTime.Milliseconds < 100) //{ ChunkProvider.ProcessSingle(); ChunkRenderer.ProcessSingle(context.GameTime, context); //} // Ensure we have an occluding sprite batch. if (FilteredFeatures.IsEnabled(Feature.IsometricOcclusion)) { if (this.m_OccludingSpriteBatch == null) { this.m_OccludingSpriteBatch = new OccludingSpriteBatch(context.Graphics.GraphicsDevice); } this.m_OccludingSpriteBatch.Begin(true); } else { context.Graphics.GraphicsDevice.Clear(ClearOptions.DepthBuffer | ClearOptions.Target, Color.Black, 1f, 0); } }