Description:
Split into separate batches.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -543,7 +543,7 | |||||
|
543 | _imGuiRenderer.BeforeLayout(gameTime); |
|
543 | _imGuiRenderer.BeforeLayout(gameTime); |
|
544 | if (this.isPlaying) |
|
544 | if (this.isPlaying) |
|
545 | { |
|
545 | { |
|
546 |
batch.Begin(SpriteSortMode. |
|
546 | batch.Begin(SpriteSortMode.Deferred, |
|
547 | BlendState.AlphaBlend, |
|
547 | BlendState.AlphaBlend, |
|
548 | null, |
|
548 | null, |
|
549 | null, |
|
549 | null, |
@@ -584,11 +584,19 | |||||
|
584 | // } |
|
584 | // } |
|
585 | } |
|
585 | } |
|
586 | } |
|
586 | } |
|
|
587 | batch.End(); | ||
|
587 | stopWatch2.Stop(); |
|
588 | stopWatch2.Stop(); |
|
588 | this.tileDrawTime = stopWatch2.Elapsed; |
|
589 | this.tileDrawTime = stopWatch2.Elapsed; |
|
589 | #endregion draw_tiles |
|
590 | #endregion draw_tiles |
|
590 |
|
591 | ||
|
591 | #region draw_gridlines |
|
592 | #region draw_gridlines |
|
|
593 | batch.Begin(SpriteSortMode.BackToFront, | ||
|
|
594 | BlendState.AlphaBlend, | ||
|
|
595 | null, | ||
|
|
596 | null, | ||
|
|
597 | null, | ||
|
|
598 | null, | ||
|
|
599 | camera.get_transformation(GraphicsDevice)); | ||
|
592 | stopWatch2 = new Stopwatch(); |
|
600 | stopWatch2 = new Stopwatch(); |
|
593 | stopWatch2.Start(); |
|
601 | stopWatch2.Start(); |
|
594 |
|
602 |
You need to be logged in to leave comments.
Login now