DarkflameServer/dWorldServer/PerformanceManager.h

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

23 lines
444 B
C
Raw 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;
};