# HG changeset patch # User Alys Brooks # Date 2022-01-12 06:16:39 # Node ID fe4d6db6d464fdfc149142b7af598caf73e4448b # Parent 7b5c9fe565b841af8a1a08197a58056949ffae07 Split into separate batches. diff --git a/isometric-park-fna/FNAGame.cs b/isometric-park-fna/FNAGame.cs --- a/isometric-park-fna/FNAGame.cs +++ b/isometric-park-fna/FNAGame.cs @@ -543,7 +543,7 @@ _imGuiRenderer.BeforeLayout(gameTime); if (this.isPlaying) { - batch.Begin(SpriteSortMode.BackToFront, + batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, null, null, @@ -584,11 +584,19 @@ // } } } + batch.End(); stopWatch2.Stop(); this.tileDrawTime = stopWatch2.Elapsed; #endregion draw_tiles #region draw_gridlines + batch.Begin(SpriteSortMode.BackToFront, + BlendState.AlphaBlend, + null, + null, + null, + null, + camera.get_transformation(GraphicsDevice)); stopWatch2 = new Stopwatch(); stopWatch2.Start();