Timing test.

This commit is contained in:
Ottermandias 2023-01-03 21:55:39 +01:00
parent 6bc0b77ad3
commit f2997102c7
15 changed files with 220 additions and 59 deletions

View file

@ -54,6 +54,8 @@ public sealed partial class ConfigWindow : Window, IDisposable
{
try
{
TimingManager.StartTimer( TimingType.UiMainWindow );
if( Penumbra.ImcExceptions.Count > 0 )
{
DrawProblemWindow( $"There were {Penumbra.ImcExceptions.Count} errors while trying to load IMC files from the game data.\n"
@ -101,6 +103,7 @@ public sealed partial class ConfigWindow : Window, IDisposable
{
Penumbra.Log.Error( $"Exception thrown during UI Render:\n{e}" );
}
TimingManager.StopTimer( TimingType.UiMainWindow );
}
private static void DrawProblemWindow( string text, bool withExceptions )