diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2021-05-21 01:23:35 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2021-07-26 02:00:48 -0400 |
commit | 4ecb6fba8002533f266d03e13ccba7cee4216421 (patch) | |
tree | 6ce7421c462e72b3691d01bff6256cb4cab0a631 /main/performance.h | |
parent | 0c68ccecda468b6c03f57b090aab69decc7b9549 (diff) |
Use doubles for time everywhere in Timer/SceneTree
Diffstat (limited to 'main/performance.h')
-rw-r--r-- | main/performance.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/main/performance.h b/main/performance.h index 174b3500d1..4653051ebb 100644 --- a/main/performance.h +++ b/main/performance.h @@ -43,10 +43,10 @@ class Performance : public Object { static Performance *singleton; static void _bind_methods(); - float _get_node_count() const; + int _get_node_count() const; - float _process_time; - float _physics_process_time; + double _process_time; + double _physics_process_time; class MonitorCall { Callable _callable; @@ -96,13 +96,13 @@ public: MONITOR_TYPE_TIME }; - float get_monitor(Monitor p_monitor) const; + double get_monitor(Monitor p_monitor) const; String get_monitor_name(Monitor p_monitor) const; MonitorType get_monitor_type(Monitor p_monitor) const; - void set_process_time(float p_pt); - void set_physics_process_time(float p_pt); + void set_process_time(double p_pt); + void set_physics_process_time(double p_pt); void add_custom_monitor(const StringName &p_id, const Callable &p_callable, const Vector<Variant> &p_args); void remove_custom_monitor(const StringName &p_id); |