Add profile events for Editor startup

This commit is contained in:
Wojciech Figat
2021-12-22 16:23:53 +01:00
parent 2b5f552c2c
commit 36a18a0b56
4 changed files with 73 additions and 57 deletions

View File

@@ -625,6 +625,7 @@ bool Editor::Init()
exit(failed ? 1 : 0);
return true;
}
PROFILE_CPU();
// If during last lightmaps baking engine crashed we could try to restore the progress
ShadowsOfMordor::Builder::Instance()->CheckIfRestoreState();
@@ -633,10 +634,13 @@ bool Editor::Init()
Managed = New<ManagedEditor>();
// Show splash screen
if (EditorImpl::Splash == nullptr)
EditorImpl::Splash = New<SplashScreen>();
EditorImpl::Splash->SetTitle(Project->Name);
EditorImpl::Splash->Show();
{
PROFILE_CPU_NAMED("Splash");
if (EditorImpl::Splash == nullptr)
EditorImpl::Splash = New<SplashScreen>();
EditorImpl::Splash->SetTitle(Project->Name);
EditorImpl::Splash->Show();
}
// Initialize managed editor
Managed->Init();