mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Allow Profiling in Release for now.
This commit is contained in:
parent
f29bdee010
commit
ea66bd2e67
4 changed files with 10 additions and 5 deletions
2
OtterGui
2
OtterGui
|
|
@ -1 +1 @@
|
||||||
Subproject commit aee8a3dc8e7eb1145c328a7c50f7e5bbcdd234f8
|
Subproject commit 407aa4857ead69a03793a62b889452529c9bc572
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<MSBuildWarningsAsMessages>$(MSBuildWarningsAsMessages);MSB3277</MSBuildWarningsAsMessages>
|
<MSBuildWarningsAsMessages>$(MSBuildWarningsAsMessages);MSB3277</MSBuildWarningsAsMessages>
|
||||||
|
<DefineConstants>PROFILING;</DefineConstants>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
||||||
|
|
@ -116,17 +116,20 @@ public partial class ConfigWindow
|
||||||
PrintValue( "Web Server Enabled", ( _window._penumbra.WebServer != null ).ToString() );
|
PrintValue( "Web Server Enabled", ( _window._penumbra.WebServer != null ).ToString() );
|
||||||
}
|
}
|
||||||
|
|
||||||
[Conditional( "DEBUG" )]
|
|
||||||
private static void DrawPerformanceTab()
|
private static void DrawPerformanceTab()
|
||||||
{
|
{
|
||||||
ImGui.NewLine();
|
ImGui.NewLine();
|
||||||
if( !ImGui.CollapsingHeader( "Performance" ) )
|
if( ImGui.CollapsingHeader( "Performance" ) )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Penumbra.StartTimer.Draw( "##startTimer", TimingExtensions.ToName );
|
using( var start = TreeNode( "Startup Performance", ImGuiTreeNodeFlags.DefaultOpen ) )
|
||||||
ImGui.NewLine();
|
{
|
||||||
|
Penumbra.StartTimer.Draw( "##startTimer", TimingExtensions.ToName );
|
||||||
|
ImGui.NewLine();
|
||||||
|
}
|
||||||
|
|
||||||
Penumbra.Performance.Draw( "##performance", "Enable Runtime Performance Tracking", TimingExtensions.ToName );
|
Penumbra.Performance.Draw( "##performance", "Enable Runtime Performance Tracking", TimingExtensions.ToName );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ public sealed partial class ConfigWindow : Window, IDisposable
|
||||||
{
|
{
|
||||||
_penumbra = penumbra;
|
_penumbra = penumbra;
|
||||||
_settingsTab = new SettingsTab( this );
|
_settingsTab = new SettingsTab( this );
|
||||||
|
|
||||||
_selector = new ModFileSystemSelector( _penumbra.ModFileSystem );
|
_selector = new ModFileSystemSelector( _penumbra.ModFileSystem );
|
||||||
_modPanel = new ModPanel( this );
|
_modPanel = new ModPanel( this );
|
||||||
_selector.SelectionChanged += _modPanel.OnSelectionChange;
|
_selector.SelectionChanged += _modPanel.OnSelectionChange;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue