summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorEmmanuel Barroga <emmanuelbarroga@gmail.com>2019-06-12 20:37:51 -0700
committerEmmanuel Barroga <emmanuelbarroga@gmail.com>2019-06-13 08:53:48 -0700
commit2cce5699eaeb97db3a5fb82f31acd277443b6c08 (patch)
treeed25e32860b21a50cb2d296276a4b0e432ceeaf7 /main
parenta7459347615749875d899da308ae33097347b789 (diff)
Limit Physics Process FPS above 0
Resolves: #19734
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 3f01a17ea7..7e4fdeeaa7 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -1020,6 +1020,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
}
Engine::get_singleton()->set_iterations_per_second(GLOBAL_DEF("physics/common/physics_fps", 60));
+ ProjectSettings::get_singleton()->set_custom_property_info("physics/common/physics_fps", PropertyInfo(Variant::INT, "physics/common/physics_fps", PROPERTY_HINT_RANGE, "1,120,1,or_greater"));
Engine::get_singleton()->set_physics_jitter_fix(GLOBAL_DEF("physics/common/physics_jitter_fix", 0.5));
Engine::get_singleton()->set_target_fps(GLOBAL_DEF("debug/settings/fps/force_fps", 0));
ProjectSettings::get_singleton()->set_custom_property_info("debug/settings/fps/force_fps", PropertyInfo(Variant::INT, "debug/settings/fps/force_fps", PROPERTY_HINT_RANGE, "0,120,1,or_greater"));