Use CVar to determine whether or not to display Random calls

This commit is contained in:
Phillip Stephens 2020-09-13 13:43:50 -07:00
parent 4c3d7193b1
commit e5b63ba523
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
2 changed files with 5 additions and 2 deletions

View File

@ -120,7 +120,10 @@ void ViewManager::TestGameView::think() {
}
}
overlayText += fmt::format(FMT_STRING("CRandom16::Next calls: {}\n"), urde::CRandom16::GetNumNextCalls());
if (m_cvarCommons.m_debugOverlayShowRandomStats->toBoolean()) {
overlayText += fmt::format(FMT_STRING("CRandom16::Next calls: {}\n"), urde::CRandom16::GetNumNextCalls());
}
if (m_cvarCommons.m_debugOverlayShowResourceStats->toBoolean())
overlayText += fmt::format(FMT_STRING("Resource Objects: {}\n"), g_SimplePool->GetLiveObjects());

2
hecl

@ -1 +1 @@
Subproject commit 85949ed540d9f2df008f6d039cdfb0b76537c2cf
Subproject commit d0192a1623f0114fc93de10737a6c1d5f89c4e22