diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-08-11 02:35:16 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-08-11 02:37:02 +0200 |
commit | 937c1a716c87e48ba0d1c097747e0438dc076f67 (patch) | |
tree | 956f3f725bab532a92f0c96a97fd93291d4eca08 /core/config | |
parent | 18bd0fee5a8aa360177cbe14a16d6be69f088d8f (diff) |
Rename `iterations_per_second` to `physics_ticks_per_second`
This makes it clearer that this property is only about physics FPS,
not rendering FPS.
The `physics_fps` project setting was also renamed to
`physics_ticks_per_second` for consistency.
Diffstat (limited to 'core/config')
-rw-r--r-- | core/config/engine.cpp | 4 | ||||
-rw-r--r-- | core/config/engine.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/config/engine.cpp b/core/config/engine.cpp index 3ffd8ee46b..495670bc88 100644 --- a/core/config/engine.cpp +++ b/core/config/engine.cpp @@ -37,12 +37,12 @@ #include "core/version.h" #include "core/version_hash.gen.h" -void Engine::set_iterations_per_second(int p_ips) { +void Engine::set_physics_ticks_per_second(int p_ips) { ERR_FAIL_COND_MSG(p_ips <= 0, "Engine iterations per second must be greater than 0."); ips = p_ips; } -int Engine::get_iterations_per_second() const { +int Engine::get_physics_ticks_per_second() const { return ips; } diff --git a/core/config/engine.h b/core/config/engine.h index 3b3e5825b2..e6b5df2d5a 100644 --- a/core/config/engine.h +++ b/core/config/engine.h @@ -78,8 +78,8 @@ private: public: static Engine *get_singleton(); - virtual void set_iterations_per_second(int p_ips); - virtual int get_iterations_per_second() const; + virtual void set_physics_ticks_per_second(int p_ips); + virtual int get_physics_ticks_per_second() const; void set_physics_jitter_fix(double p_threshold); double get_physics_jitter_fix() const; |