重构前夕
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user