mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-15 04:38:21 +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;
|
|
};
|