diff --git a/vehicle/dynamic/update.cpp b/vehicle/dynamic/update.cpp index b85d1cb20..3b29793d4 100644 --- a/vehicle/dynamic/update.cpp +++ b/vehicle/dynamic/update.cpp @@ -323,6 +323,12 @@ void TDynamicObject::updateDriver( double const dt1 ) distributeInductionBraking( dt1 ); } + // the time the AI takes is for the debug panel of the renderer. the test mode shows none, and the clock read twice for each + // vehicle with a driver, every step, is a part of its frame worth saving + if( Global.test.enabled ) { + Mechanik->Update(dt1); // przebłyski świadomości AI + return; + } Timer::subsystem.vehicles_ai.start(); Mechanik->Update(dt1); // przebłyski świadomości AI Timer::subsystem.vehicles_ai.stop();