You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-04 17:04:49 +00:00
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.
This commit is contained in:
@@ -2077,12 +2077,12 @@ void _ClassDB::_bind_methods() {
|
||||
|
||||
////// _Engine //////
|
||||
|
||||
void _Engine::set_iterations_per_second(int p_ips) {
|
||||
Engine::get_singleton()->set_iterations_per_second(p_ips);
|
||||
void _Engine::set_physics_ticks_per_second(int p_ips) {
|
||||
Engine::get_singleton()->set_physics_ticks_per_second(p_ips);
|
||||
}
|
||||
|
||||
int _Engine::get_iterations_per_second() const {
|
||||
return Engine::get_singleton()->get_iterations_per_second();
|
||||
int _Engine::get_physics_ticks_per_second() const {
|
||||
return Engine::get_singleton()->get_physics_ticks_per_second();
|
||||
}
|
||||
|
||||
void _Engine::set_physics_jitter_fix(double p_threshold) {
|
||||
@@ -2187,8 +2187,8 @@ bool _Engine::is_printing_error_messages() const {
|
||||
}
|
||||
|
||||
void _Engine::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("set_iterations_per_second", "iterations_per_second"), &_Engine::set_iterations_per_second);
|
||||
ClassDB::bind_method(D_METHOD("get_iterations_per_second"), &_Engine::get_iterations_per_second);
|
||||
ClassDB::bind_method(D_METHOD("set_physics_ticks_per_second", "physics_ticks_per_second"), &_Engine::set_physics_ticks_per_second);
|
||||
ClassDB::bind_method(D_METHOD("get_physics_ticks_per_second"), &_Engine::get_physics_ticks_per_second);
|
||||
ClassDB::bind_method(D_METHOD("set_physics_jitter_fix", "physics_jitter_fix"), &_Engine::set_physics_jitter_fix);
|
||||
ClassDB::bind_method(D_METHOD("get_physics_jitter_fix"), &_Engine::get_physics_jitter_fix);
|
||||
ClassDB::bind_method(D_METHOD("get_physics_interpolation_fraction"), &_Engine::get_physics_interpolation_fraction);
|
||||
@@ -2225,7 +2225,7 @@ void _Engine::_bind_methods() {
|
||||
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "editor_hint"), "set_editor_hint", "is_editor_hint");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "print_error_messages"), "set_print_error_messages", "is_printing_error_messages");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "iterations_per_second"), "set_iterations_per_second", "get_iterations_per_second");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "physics_ticks_per_second"), "set_physics_ticks_per_second", "get_physics_ticks_per_second");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "target_fps"), "set_target_fps", "get_target_fps");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "time_scale"), "set_time_scale", "get_time_scale");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "physics_jitter_fix"), "set_physics_jitter_fix", "get_physics_jitter_fix");
|
||||
|
||||
Reference in New Issue
Block a user