#pragma once #include #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 m_Profiles; };