2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
#include "dCommonVars.h"
|
|
|
|
|
2022-02-09 09:38:09 +00:00
|
|
|
struct PerformanceProfile {
|
2022-12-16 11:46:38 +00:00
|
|
|
uint32_t serverFrameDelta;
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|
|
|
|
|
2022-02-09 09:38:09 +00:00
|
|
|
class PerformanceManager {
|
2021-12-05 17:54:36 +00:00
|
|
|
public:
|
2022-02-09 09:38:09 +00:00
|
|
|
static void SelectProfile(LWOMAPID mapID);
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2022-12-16 11:46:38 +00:00
|
|
|
static uint32_t GetServerFrameDelta();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
private:
|
2022-02-09 09:38:09 +00:00
|
|
|
static PerformanceProfile m_CurrentProfile;
|
|
|
|
static PerformanceProfile m_DefaultProfile;
|
|
|
|
static PerformanceProfile m_InactiveProfile;
|
|
|
|
static std::map<LWOMAPID, PerformanceProfile> m_Profiles;
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|