Update WorldServer timings

This commit is contained in:
David Markowitz
2022-12-16 03:46:38 -08:00
parent 3f1b4339f5
commit 0d460c0eb3
4 changed files with 42 additions and 19 deletions

View File

@@ -79,10 +79,10 @@ void PerformanceManager::SelectProfile(LWOMAPID mapID) {
m_CurrentProfile = pair->second;
}
uint32_t PerformanceManager::GetServerFramerate() {
uint32_t PerformanceManager::GetServerFrameDelta() {
if (UserManager::Instance()->GetUserCount() == 0) {
return m_InactiveProfile.serverFramerate;
return m_InactiveProfile.serverFrameDelta;
}
return m_CurrentProfile.serverFramerate;
return m_CurrentProfile.serverFrameDelta;
}