2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-11 22:24:00 +00:00

Improve Optick events

This commit is contained in:
Henrique Gemignani Passos Lima
2021-06-29 01:10:54 +03:00
parent d310dcfecb
commit 1b4e0dc754
4 changed files with 12 additions and 3 deletions

View File

@@ -337,8 +337,6 @@ public:
}
void onAppIdle() noexcept {
OPTICK_FRAME("MainThread");
if (!m_deferredProject.empty()) {
hecl::SystemString subPath;
hecl::ProjectRootPath projPath = hecl::SearchForProject(m_deferredProject, subPath);
@@ -363,7 +361,11 @@ public:
return;
}
m_window->waitForRetrace();
{
OPTICK_EVENT("Wait for Retrace");
m_window->waitForRetrace();
}
OPTICK_FRAME("MainThread");
boo::SWindowRect rect = m_windowCallback.m_lastRect;
rect.location = {0, 0};