2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 05:07:43 +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

@@ -1120,6 +1120,7 @@ void ImGuiConsole::ShowAppMainMenuBar(bool canInspect) {
s32 TranslateBooSpecialKey(boo::ESpecialKey key) { return 256 + static_cast<int>(key); }
void ImGuiConsole::PreUpdate() {
OPTICK_EVENT();
if (!m_isInitialized) {
m_isInitialized = true;
m_cvarCommons.m_debugOverlayShowFrameCounter->addListener(
@@ -1198,6 +1199,7 @@ void ImGuiConsole::PreUpdate() {
}
void ImGuiConsole::PostUpdate() {
OPTICK_EVENT();
if (g_StateManager != nullptr && g_StateManager->GetObjectList()) {
// Clear deleted objects
CObjectList& list = g_StateManager->GetAllObjectList();