Description:
Fix crash caused by batch ending too early.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -933,7 +933,6 | |||
|
933 | 933 | #endregion draw_header |
|
934 | 934 | |
|
935 | 935 | |
|
936 | batch.End(); | |
|
937 | 936 | |
|
938 | 937 | #region window |
|
939 | 938 | Menu.Render(debugWindow.monoFont, FNAGame.width, this.imGuiWindowBridgeEngine, ref quit, ref this.simulation.paused, ref this.simulation.currentRate, ref this.showBudget, header_left); |
@@ -946,6 +945,7 | |||
|
946 | 945 | { |
|
947 | 946 | budgetWindow.draw(batch); |
|
948 | 947 | } |
|
948 | batch.End(); | |
|
949 | 949 | |
|
950 | 950 | #endregion budget |
|
951 | 951 | |
@@ -999,7 +999,6 | |||
|
999 | 999 | stopWatch2.Start(); |
|
1000 | 1000 | //Calcs for debug window: |
|
1001 | 1001 | // past_draw.Enqueue(this.drawTime); |
|
1002 | Logging.Spy(new {frame = this.frameCounter}); | |
|
1003 | 1002 | if (this.totalFrameCounter > 60 && ((this.frameCounter % 15) == 0)) |
|
1004 | 1003 | { |
|
1005 | 1004 | past_draw_millis.Add((float)this.drawTime.TotalMilliseconds); |
@@ -1099,6 +1098,8 | |||
|
1099 | 1098 | additionalInfo.Add("99.99%% draw", MathUtils.Percentile(past_draw_floats, 0.9999f).ToString()); |
|
1100 | 1099 | } |
|
1101 | 1100 | |
|
1101 | additionalInfo.Add("Total frames", totalFrameCounter.ToString()); | |
|
1102 | ||
|
1102 | 1103 | debugWindow.Layout(debugInfo, additionalInfo, ref show_another_window); |
|
1103 | 1104 | |
|
1104 | 1105 | _imGuiRenderer.AfterLayout(); |
You need to be logged in to leave comments.
Login now