DarkflameServer/dWorldServer/PerformanceManager.h

23 lines
444 B
C
Raw Permalink Normal View History

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