18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-04 23:45:17 +01:00

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.
This commit is contained in:
jerrrrycho
2026-12-04 18:04:27 +01:00
parent 475b8098ea
commit 835a2dae6f
-6
View File
@@ -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();