diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-08-11 08:05:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-11 08:05:33 +0200 |
commit | 80dec1948a291543e5d7a19d611b8d290144eb50 (patch) | |
tree | 6945e1914551d15623d682a95b2b204563cc2c65 /core/config | |
parent | 7d43da928f63d247645f54618fea9479cca838d0 (diff) | |
parent | 937c1a716c87e48ba0d1c097747e0438dc076f67 (diff) |
Merge pull request #41956 from Calinou/rename-engine-iterations-per-second
Rename `iterations_per_second` to `physics_ticks_per_second`
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; |