mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
Performance Monitor Improvements:
1. Added command for runtime toggle 2. Changed where tick time is captured to properly capture per-tick statistics (matching cmangos playerbots)
This commit is contained in:
@@ -83,6 +83,16 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!strcmp(args, "toggle"))
|
||||
{
|
||||
sPlayerbotAIConfig->perfMonEnabled = !sPlayerbotAIConfig->perfMonEnabled;
|
||||
if (sPlayerbotAIConfig->perfMonEnabled)
|
||||
LOG_INFO("playerbots", "Performance monitor enabled");
|
||||
else
|
||||
LOG_INFO("playerbots", "Performance monitor disabled");
|
||||
return true;
|
||||
}
|
||||
|
||||
sPerformanceMonitor->PrintStats();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user