summaryrefslogtreecommitdiff
path: root/servers/debugger
diff options
context:
space:
mode:
Diffstat (limited to 'servers/debugger')
-rw-r--r--servers/debugger/servers_debugger.cpp14
-rw-r--r--servers/debugger/servers_debugger.h2
2 files changed, 8 insertions, 8 deletions
diff --git a/servers/debugger/servers_debugger.cpp b/servers/debugger/servers_debugger.cpp
index d1391937d9..02703cacbf 100644
--- a/servers/debugger/servers_debugger.cpp
+++ b/servers/debugger/servers_debugger.cpp
@@ -89,7 +89,7 @@ Array ServersDebugger::ServersProfilerFrame::serialize() {
Array arr;
arr.push_back(frame_number);
arr.push_back(frame_time);
- arr.push_back(idle_time);
+ arr.push_back(process_time);
arr.push_back(physics_time);
arr.push_back(physics_frame_time);
arr.push_back(script_time);
@@ -120,7 +120,7 @@ bool ServersDebugger::ServersProfilerFrame::deserialize(const Array &p_arr) {
CHECK_SIZE(p_arr, 7, "ServersProfilerFrame");
frame_number = p_arr[0];
frame_time = p_arr[1];
- idle_time = p_arr[2];
+ process_time = p_arr[2];
physics_time = p_arr[3];
physics_frame_time = p_arr[4];
script_time = p_arr[5];
@@ -281,7 +281,7 @@ class ServersDebugger::ServersProfiler : public EngineProfiler {
ScriptsProfiler scripts_profiler;
double frame_time = 0;
- double idle_time = 0;
+ double process_time = 0;
double physics_time = 0;
double physics_frame_time = 0;
@@ -289,7 +289,7 @@ class ServersDebugger::ServersProfiler : public EngineProfiler {
ServersDebugger::ServersProfilerFrame frame;
frame.frame_number = Engine::get_singleton()->get_process_frames();
frame.frame_time = frame_time;
- frame.idle_time = idle_time;
+ frame.process_time = process_time;
frame.physics_time = physics_time;
frame.physics_frame_time = physics_frame_time;
Map<StringName, ServerInfo>::Element *E = server_data.front();
@@ -340,9 +340,9 @@ public:
srv.functions.push_back(fi);
}
- void tick(double p_frame_time, double p_idle_time, double p_physics_time, double p_physics_frame_time) {
+ void tick(double p_frame_time, double p_process_time, double p_physics_time, double p_physics_frame_time) {
frame_time = p_frame_time;
- idle_time = p_idle_time;
+ process_time = p_process_time;
physics_time = p_physics_time;
physics_frame_time = p_physics_frame_time;
_send_frame_data(false);
@@ -366,7 +366,7 @@ public:
void add(const Array &p_data) {}
- void tick(double p_frame_time, double p_idle_time, double p_physics_time, double p_physics_frame_time) {
+ void tick(double p_frame_time, double p_process_time, double p_physics_time, double p_physics_frame_time) {
Vector<RS::FrameProfileArea> profile_areas = RS::get_singleton()->get_frame_profile();
ServersDebugger::VisualProfilerFrame frame;
if (!profile_areas.size()) {
diff --git a/servers/debugger/servers_debugger.h b/servers/debugger/servers_debugger.h
index d1c55dc690..f949c436e7 100644
--- a/servers/debugger/servers_debugger.h
+++ b/servers/debugger/servers_debugger.h
@@ -85,7 +85,7 @@ public:
struct ServersProfilerFrame {
int frame_number = 0;
double frame_time = 0;
- double idle_time = 0;
+ double process_time = 0;
double physics_time = 0;
double physics_frame_time = 0;
double script_time = 0;