mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 12:57:06 +01:00
0aee37599a
In the test mode nothing is heard or seen, yet every frame went through the sounds of the scenery and of the vehicles near the camera (basic_region::update_sounds(): the cells' sounds, TTrack:: RenderDynSounds(), TDynamicObject::RenderSounds()), the smoke (particle_manager::update()) and the wipers and the mirrors of every vehicle (updateWipers(), updateMirrors()). They're skipped there now. Checked first that none of them changes what the simulation goes by: - the sounds and the particles draw from the local engine of LocalRandom() only, which the physics, the AI and the events don't use (they draw from Random()'s engines); - RenderSounds() clears the vehicle's sound flags (ClearSoundFlags(), ClearEventFlag(), the brake's GetSoundFlag()), which nothing but the sounds reads; - the wiper positions and timers and the mirror positions are read by the renderers and the cab sounds only. Kept: updateAxleClatter(), whose joint jolts shake the physics (ShakeVertically/Horizontally). Outside the test mode nothing changes. 600 s in --test, seed 12345, one run each, the step before run again in the same session: Tomaszewo sim 129.5 s against 129.9 s, L107 17.9 s against 17.9 s: no gain shows beyond the run-to-run spread (the camera of the test mode, ghostview, has few sounds and smoke sources near it). The physics logs (14 and 9) and the event logs are byte-identical to staging's, unit tests 1207/1207 with exact golden traces.