From 835a2dae6ff57a33e42349f7064b5fc644b5331e Mon Sep 17 00:00:00 2001 From: jerrrrycho Date: Fri, 4 Dec 2026 18:04:27 +0100 Subject: [PATCH] revert: perf(vehicle): no AI stopwatch in test mode This reverts commit 2fdf9d27b. #592 (perf/physics-step-4) makes the same change in updateDriver() with a flag instead of an early return with a second Mechanik->Update call, and the two would conflict in whichever PR merged second. The change stays in #592 only. --- vehicle/dynamic/update.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/vehicle/dynamic/update.cpp b/vehicle/dynamic/update.cpp index 3b29793d4..b85d1cb20 100644 --- a/vehicle/dynamic/update.cpp +++ b/vehicle/dynamic/update.cpp @@ -323,12 +323,6 @@ 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();