mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-10 10:18:21 +00:00
d5a18af0e8
Should fix bug causing double enter and exit events
28 lines
492 B
C++
28 lines
492 B
C++
#pragma once
|
|
|
|
#include <map>
|
|
|
|
#include "dCommonVars.h"
|
|
|
|
struct PerformanceProfile {
|
|
uint32_t serverFramerate;
|
|
};
|
|
|
|
|
|
class PerformanceManager {
|
|
public:
|
|
~PerformanceManager();
|
|
|
|
static void SelectProfile(LWOMAPID mapID);
|
|
|
|
static uint32_t GetServerFramerate();
|
|
|
|
private:
|
|
PerformanceManager();
|
|
|
|
static PerformanceProfile m_CurrentProfile;
|
|
static PerformanceProfile m_DefaultProfile;
|
|
static PerformanceProfile m_InactiveProfile;
|
|
static std::map<LWOMAPID, PerformanceProfile> m_Profiles;
|
|
};
|