mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-14 04:34:19 +01:00
Timing test.
This commit is contained in:
parent
6bc0b77ad3
commit
f2997102c7
15 changed files with 220 additions and 59 deletions
|
|
@ -76,6 +76,7 @@ public unsafe partial class ResourceLoader
|
|||
return;
|
||||
}
|
||||
|
||||
TimingManager.StartTimer( TimingType.DebugTimes );
|
||||
// Got some incomprehensible null-dereference exceptions here when hot-reloading penumbra.
|
||||
try
|
||||
{
|
||||
|
|
@ -96,6 +97,7 @@ public unsafe partial class ResourceLoader
|
|||
{
|
||||
Penumbra.Log.Error( e.ToString() );
|
||||
}
|
||||
TimingManager.StopTimer( TimingType.DebugTimes );
|
||||
}
|
||||
|
||||
// Find a key in a StdMap.
|
||||
|
|
@ -202,6 +204,7 @@ public unsafe partial class ResourceLoader
|
|||
// Only used when the Replaced Resources Tab in the Debug tab is open.
|
||||
public void UpdateDebugInfo()
|
||||
{
|
||||
TimingManager.StartTimer( TimingType.DebugTimes );
|
||||
for( var i = 0; i < _debugList.Count; ++i )
|
||||
{
|
||||
var data = _debugList.Values[ i ];
|
||||
|
|
@ -220,6 +223,7 @@ public unsafe partial class ResourceLoader
|
|||
};
|
||||
}
|
||||
}
|
||||
TimingManager.StopTimer( TimingType.DebugTimes );
|
||||
}
|
||||
|
||||
// Prevent resource management weirdness.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue