mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-09 20:24:16 +00:00
Rehook dPhysics to main framerate
Should fix bug causing double enter and exit events
This commit is contained in:
@@ -4,29 +4,24 @@
|
||||
|
||||
#include "dCommonVars.h"
|
||||
|
||||
struct PerformanceProfile
|
||||
{
|
||||
uint32_t serverFramerate;
|
||||
uint32_t physicsFramerate;
|
||||
struct PerformanceProfile {
|
||||
uint32_t serverFramerate;
|
||||
};
|
||||
|
||||
|
||||
class PerformanceManager
|
||||
{
|
||||
class PerformanceManager {
|
||||
public:
|
||||
~PerformanceManager();
|
||||
~PerformanceManager();
|
||||
|
||||
static void SelectProfile(LWOMAPID mapID);
|
||||
static void SelectProfile(LWOMAPID mapID);
|
||||
|
||||
static uint32_t GetServerFramerate();
|
||||
static uint32_t GetPhysicsFramerate();
|
||||
static uint32_t GetPhysicsStepRate();
|
||||
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;
|
||||
PerformanceManager();
|
||||
|
||||
static PerformanceProfile m_CurrentProfile;
|
||||
static PerformanceProfile m_DefaultProfile;
|
||||
static PerformanceProfile m_InactiveProfile;
|
||||
static std::map<LWOMAPID, PerformanceProfile> m_Profiles;
|
||||
};
|
||||
|
Reference in New Issue
Block a user