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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user