mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-27 16:07:22 +00:00
23 lines
444 B
C++
23 lines
444 B
C++
#pragma once
|
|
|
|
#include <map>
|
|
|
|
#include "dCommonVars.h"
|
|
|
|
struct PerformanceProfile {
|
|
uint32_t serverFrameDelta;
|
|
};
|
|
|
|
class PerformanceManager {
|
|
public:
|
|
static void SelectProfile(LWOMAPID mapID);
|
|
|
|
static uint32_t GetServerFrameDelta();
|
|
|
|
private:
|
|
static PerformanceProfile m_CurrentProfile;
|
|
static PerformanceProfile m_DefaultProfile;
|
|
static PerformanceProfile m_InactiveProfile;
|
|
static std::map<LWOMAPID, PerformanceProfile> m_Profiles;
|
|
};
|