mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-23 14:03:34 +00:00
0545adfac3
Have fun!
33 lines
639 B
C++
33 lines
639 B
C++
#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;
|
|
};
|