mirror of
https://github.com/glest/glest-source.git
synced 2025-08-27 17:59:48 +02:00
Merge pull request #19 from Jammyjamjamman/ai_speedup
modified AI code so that AI performs updates faster.
This commit is contained in:
@@ -402,7 +402,7 @@ void Ai::update() {
|
||||
|
||||
if(SystemFlags::getSystemSettingType(SystemFlags::debugPerformance).enabled && chrono.getMillis() > 0) SystemFlags::OutputDebug(SystemFlags::debugPerformance,"In [%s::%s Line: %d] took msecs: %lld [ruleIdx = %d]\n",__FILE__,__FUNCTION__,__LINE__,chrono.getMillis(),ruleIdx);
|
||||
|
||||
if((aiInterface->getTimer() % (rule->getTestInterval() * GameConstants::updateFps / 1000)) == 0) {
|
||||
if((aiInterface->getTimer() % (rule->getTestInterval() * GameConstants::updateFps / 20000)) == 0) {
|
||||
|
||||
if(SystemFlags::getSystemSettingType(SystemFlags::debugPerformance).enabled && chrono.getMillis() > 0) SystemFlags::OutputDebug(SystemFlags::debugPerformance,"In [%s::%s Line: %d] took msecs: %lld [ruleIdx = %d, before rule->test()]\n",__FILE__,__FUNCTION__,__LINE__,chrono.getMillis(),ruleIdx);
|
||||
|
||||
|
Reference in New Issue
Block a user