2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 17:44:56 +00:00

Major Vulkan performance improvement

This commit is contained in:
Jack Andersen
2018-05-27 11:35:58 -10:00
parent 5eea7f3d70
commit 7e45600bed
3 changed files with 9 additions and 1 deletions

View File

@@ -15,6 +15,13 @@ public:
printf("%s %f\n", name, std::chrono::duration_cast<std::chrono::microseconds>( printf("%s %f\n", name, std::chrono::duration_cast<std::chrono::microseconds>(
std::chrono::steady_clock::now() - m_start).count() / 1000000.f); std::chrono::steady_clock::now() - m_start).count() / 1000000.f);
} }
void reportReset(const char* name)
{
std::chrono::steady_clock::time_point now = std::chrono::steady_clock::now();
printf("%s %f\n", name, std::chrono::duration_cast<std::chrono::microseconds>
(now - m_start).count() / 1000000.f);
m_start = now;
}
}; };
} }

View File

@@ -958,6 +958,7 @@ bool CGameArea::Invalidate(CStateManager* mgr)
ClearTokenList(); ClearTokenList();
if (mgr) if (mgr)
mgr->AreaUnloaded(GetAreaId()); mgr->AreaUnloaded(GetAreaId());
return true; return true;
} }

2
hecl

Submodule hecl updated: 72975a6186...48996c1548