You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Display functions that were previously forgotten in Profiler
The array data in `add()` contains these data, but some data may
have been forgotten to be converted into `ServerFunctionInfo`.
This results in some information not being displayed in the Profiler.
(cherry picked from commit 3d3c4e87c7)
This commit is contained in:
@@ -336,11 +336,13 @@ public:
|
|||||||
}
|
}
|
||||||
ServerInfo &srv = server_data[name];
|
ServerInfo &srv = server_data[name];
|
||||||
|
|
||||||
|
for (int idx = 1; idx < p_data.size() - 1; idx += 2) {
|
||||||
ServerFunctionInfo fi;
|
ServerFunctionInfo fi;
|
||||||
fi.name = p_data[1];
|
fi.name = p_data[idx];
|
||||||
fi.time = p_data[2];
|
fi.time = p_data[idx + 1];
|
||||||
srv.functions.push_back(fi);
|
srv.functions.push_back(fi);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void tick(double p_frame_time, double p_process_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;
|
frame_time = p_frame_time;
|
||||||
|
|||||||
Reference in New Issue
Block a user