diff --git a/application/drivermode.cpp b/application/drivermode.cpp index 99c3ff31e..79186a4cd 100644 --- a/application/drivermode.cpp +++ b/application/drivermode.cpp @@ -487,13 +487,18 @@ bool driver_mode::update() Timer::subsystem.switching.update(); Timer::subsystem.loop_audio.start(); - simulation::Region->update_sounds(); + // the test mode has no sound: the sounds of the scenery and of the vehicles aren't gone through. they draw from the local + // engine of Random() only (LocalRandom()), and clear the sound flags of the vehicles, which nothing else reads + if (false == Global.test.enabled) + simulation::Region->update_sounds(); audio::renderer.update(Global.iPause ? 0.0 : deltarealtime); Timer::subsystem.loop_audio.stop(); // NOTE: particle system runs on simulation time, but needs actual camera position to determine how to update each particle source + // nor smoke in the test mode, which draws nothing: the particles draw from the local engine of Random() only Timer::subsystem.loop_particles.start(); - simulation::Particles.update(); + if (false == Global.test.enabled) + simulation::Particles.update(); Timer::subsystem.loop_particles.stop(); Timer::subsystem.loop_renderer_update.start(); diff --git a/vehicle/dynamic/update.cpp b/vehicle/dynamic/update.cpp index 398fe1241..a2328b958 100644 --- a/vehicle/dynamic/update.cpp +++ b/vehicle/dynamic/update.cpp @@ -159,8 +159,11 @@ bool TDynamicObject::Update(double dt, double dt1) updateWheelAngles( dt1 ); updateCurrentCollectors( dt1 ); - updateWipers( dt1 ); - updateMirrors( dt1 ); + // the wipers and the mirrors only move in the cab and make their sounds: the test mode shows and plays neither + if( false == Global.test.enabled ) { + updateWipers( dt1 ); + updateMirrors( dt1 ); + } // compartment lights // if the vehicle has a controller, we base the light state on state of the controller otherwise we check the vehicle itself