Allow Profiling in Release for now.

This commit is contained in:
Ottermandias 2023-02-04 15:38:57 +01:00
parent f29bdee010
commit ea66bd2e67
4 changed files with 10 additions and 5 deletions

@ -1 +1 @@
Subproject commit aee8a3dc8e7eb1145c328a7c50f7e5bbcdd234f8
Subproject commit 407aa4857ead69a03793a62b889452529c9bc572

View file

@ -20,6 +20,7 @@
<PropertyGroup>
<MSBuildWarningsAsMessages>$(MSBuildWarningsAsMessages);MSB3277</MSBuildWarningsAsMessages>
<DefineConstants>PROFILING;</DefineConstants>
</PropertyGroup>
<ItemGroup>

View file

@ -116,17 +116,20 @@ public partial class ConfigWindow
PrintValue( "Web Server Enabled", ( _window._penumbra.WebServer != null ).ToString() );
}
[Conditional( "DEBUG" )]
private static void DrawPerformanceTab()
{
ImGui.NewLine();
if( !ImGui.CollapsingHeader( "Performance" ) )
if( ImGui.CollapsingHeader( "Performance" ) )
{
return;
}
Penumbra.StartTimer.Draw( "##startTimer", TimingExtensions.ToName );
ImGui.NewLine();
using( var start = TreeNode( "Startup Performance", ImGuiTreeNodeFlags.DefaultOpen ) )
{
Penumbra.StartTimer.Draw( "##startTimer", TimingExtensions.ToName );
ImGui.NewLine();
}
Penumbra.Performance.Draw( "##performance", "Enable Runtime Performance Tracking", TimingExtensions.ToName );
}

View file

@ -27,6 +27,7 @@ public sealed partial class ConfigWindow : Window, IDisposable
{
_penumbra = penumbra;
_settingsTab = new SettingsTab( this );
_selector = new ModFileSystemSelector( _penumbra.ModFileSystem );
_modPanel = new ModPanel( this );
_selector.SelectionChanged += _modPanel.OnSelectionChange;