Use doubles for time everywhere in Timer/SceneTree
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user