summaryrefslogtreecommitdiff
path: root/core/config/engine.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-04 11:19:56 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-10-04 11:19:56 +0200
commit68765b8831a1fc56cf4d51ab2fdd844bfbcd9e97 (patch)
treea31d49269d5ab7cd249a3a12af244eb6acb0ffb9 /core/config/engine.cpp
parent1c6e8f7e6236b0606342fb5bb415f53b366c0bc6 (diff)
parent1c6c72caf1b3cc004c3bcbe65b5bef5c850f82f8 (diff)
Merge pull request #66274 from Calinou/engine-rename-max-fps
Rename `Engine.target_fps` and associated project setting to `max_fps`
Diffstat (limited to 'core/config/engine.cpp')
-rw-r--r--core/config/engine.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/config/engine.cpp b/core/config/engine.cpp
index cf9697be07..21e910be5b 100644
--- a/core/config/engine.cpp
+++ b/core/config/engine.cpp
@@ -59,12 +59,12 @@ double Engine::get_physics_jitter_fix() const {
return physics_jitter_fix;
}
-void Engine::set_target_fps(int p_fps) {
- _target_fps = p_fps > 0 ? p_fps : 0;
+void Engine::set_max_fps(int p_fps) {
+ _max_fps = p_fps > 0 ? p_fps : 0;
}
-int Engine::get_target_fps() const {
- return _target_fps;
+int Engine::get_max_fps() const {
+ return _max_fps;
}
uint64_t Engine::get_frames_drawn() {