重构前夕

This commit is contained in:
2025-10-13 23:54:29 +08:00
parent fca81c514a
commit c23cefd867
4 changed files with 34 additions and 15 deletions

View File

@@ -16,7 +16,7 @@ namespace Demo.Editor
{
public class EditorController : MonoSingleton<EditorController>
{
#if UNITY_EDITOR
#if UNITY_EDITOR||Using_ProfilerMarker
public ProfilerMarker s_PreparePerfMarker = new(nameof(EditorController) + "Runtime");
#endif
@@ -467,7 +467,7 @@ namespace Demo.Editor
{
CurrentFPS.text = $"{1 / Time.smoothDeltaTime}";
#if UNITY_EDITOR
#if UNITY_EDITOR||Using_ProfilerMarker
s_PreparePerfMarker.Begin(this);
try
{
@@ -530,7 +530,7 @@ namespace Demo.Editor
CloseCurrentProject();
}
}
#if UNITY_EDITOR
#if UNITY_EDITOR||Using_ProfilerMarker
}
finally
{