17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-25 03:17:13 +01:00

perf(physics): road vehicles farther than 1 km from the camera go by one step of the physics in a frame (physics.roadlod); count what resets the switching time of the vehicles (compressor, mains, diesel, physics woken) in the debug panel

This commit is contained in:
2026-10-23 18:47:01 +02:00
parent a04efbf968
commit f17462b186
9 changed files with 117 additions and 6 deletions

View File

@@ -6,6 +6,7 @@
#include "stdafx.h"
#include "utilities/Globals.h"
#include "utilities/Logs.h"
#include "utilities/Timer.h"
#include "scene/scenenodegroups.h"
#include "scene/scenelayers.h"
@@ -20,6 +21,12 @@ global_settings &GetGlobalSettings() {
return settings;
}
// timers of the debug panel, which the physics counts its switching in ---------------------------------
namespace Timer {
subsystem_stopwatches subsystem; // NOSONAR the engine's extern global, utilities/Timer.h
}
// logs: quiet, unless EU07_UNIT_TESTS_LOG is set --------------------------------------------------
namespace {