Add conditional profiling in Editor (run only when using Profiler window)

This commit is contained in:
Wojtek Figat
2023-09-25 18:34:07 +02:00
parent 216a5e9f92
commit da47088250
6 changed files with 30 additions and 6 deletions

View File

@@ -102,9 +102,6 @@ int32 Engine::Main(const Char* cmdLine)
Platform::SetHighDpiAwarenessEnabled(!CommandLine::Options.LowDPI.IsTrue());
Time::StartupTime = DateTime::Now();
#if COMPILE_WITH_PROFILER
ProfilerCPU::Enabled = true;
#endif
Globals::StartupFolder = Globals::BinariesFolder = Platform::GetMainDirectory();
#if USE_EDITOR
Globals::StartupFolder /= TEXT("../../../..");