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();