DarkflameServer/dWorldServer/PerformanceManager.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
442 B
C
Raw Normal View History

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