Use doubles for time everywhere in Timer/SceneTree

This commit is contained in:
Aaron Franke
2021-05-21 01:23:35 -04:00
parent 0c68ccecda
commit 4ecb6fba80
13 changed files with 68 additions and 68 deletions

View File

@ -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);