DarkflameServer/dWorldServer/PerformanceManager.h

33 lines
639 B
C
Raw Normal View History

#pragma once
#include <map>
#include "dCommonVars.h"
struct PerformanceProfile
{
uint32_t serverFramerate;
uint32_t physicsFramerate;
};
class PerformanceManager
{
public:
~PerformanceManager();
static void SelectProfile(LWOMAPID mapID);
static uint32_t GetServerFramerate();
static uint32_t GetPhysicsFramerate();
static uint32_t GetPhysicsStepRate();
private:
PerformanceManager();
static PerformanceProfile m_CurrentProfile;
static PerformanceProfile m_DefaultProfile;
static PerformanceProfile m_InactiveProfile;
static std::map<LWOMAPID, PerformanceProfile> m_Profiles;
};