mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Renamed fixed_process to physics_process
This commit is contained in:
parent
4f39ce32b9
commit
4537977d6d
75 changed files with 296 additions and 296 deletions
|
@ -42,7 +42,7 @@ void Performance::_bind_methods() {
|
|||
|
||||
BIND_ENUM_CONSTANT(TIME_FPS);
|
||||
BIND_ENUM_CONSTANT(TIME_PROCESS);
|
||||
BIND_ENUM_CONSTANT(TIME_FIXED_PROCESS);
|
||||
BIND_ENUM_CONSTANT(TIME_PHYSICS_PROCESS);
|
||||
BIND_ENUM_CONSTANT(MEMORY_STATIC);
|
||||
BIND_ENUM_CONSTANT(MEMORY_DYNAMIC);
|
||||
BIND_ENUM_CONSTANT(MEMORY_STATIC_MAX);
|
||||
|
@ -78,7 +78,7 @@ String Performance::get_monitor_name(Monitor p_monitor) const {
|
|||
|
||||
"time/fps",
|
||||
"time/process",
|
||||
"time/fixed_process",
|
||||
"time/physics_process",
|
||||
"memory/static",
|
||||
"memory/dynamic",
|
||||
"memory/static_max",
|
||||
|
@ -114,7 +114,7 @@ float Performance::get_monitor(Monitor p_monitor) const {
|
|||
switch (p_monitor) {
|
||||
case TIME_FPS: return Engine::get_singleton()->get_frames_per_second();
|
||||
case TIME_PROCESS: return _process_time;
|
||||
case TIME_FIXED_PROCESS: return _fixed_process_time;
|
||||
case TIME_PHYSICS_PROCESS: return _physics_process_time;
|
||||
case MEMORY_STATIC: return Memory::get_mem_usage();
|
||||
case MEMORY_DYNAMIC: return MemoryPool::total_memory;
|
||||
case MEMORY_STATIC_MAX: return Memory::get_mem_max_usage();
|
||||
|
@ -158,14 +158,14 @@ void Performance::set_process_time(float p_pt) {
|
|||
_process_time = p_pt;
|
||||
}
|
||||
|
||||
void Performance::set_fixed_process_time(float p_pt) {
|
||||
void Performance::set_physics_process_time(float p_pt) {
|
||||
|
||||
_fixed_process_time = p_pt;
|
||||
_physics_process_time = p_pt;
|
||||
}
|
||||
|
||||
Performance::Performance() {
|
||||
|
||||
_process_time = 0;
|
||||
_fixed_process_time = 0;
|
||||
_physics_process_time = 0;
|
||||
singleton = this;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue