summaryrefslogtreecommitdiff
path: root/scene/main/timer.h
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-10-09 08:57:48 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2021-10-09 08:57:48 +0200
commit42d13e29e2813ee833fa209cfd0e9b379cb84cd9 (patch)
tree08dd8fdced1e1ea5fa30ce282e9f0015e9353c3a /scene/main/timer.h
parent6f72d9d19fe11ccc38a69e0460813646ad28d0e5 (diff)
Add a warning for Timer nodes with very low wait times
Very low wait times behave in unpredictable ways depending on the rendered frame rate. This is because the timeout signal is only emitted once per rendered frame (or physics frame, depending on the timer's process mode).
Diffstat (limited to 'scene/main/timer.h')
-rw-r--r--scene/main/timer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/main/timer.h b/scene/main/timer.h
index 2b9faddcb9..e2f34042dd 100644
--- a/scene/main/timer.h
+++ b/scene/main/timer.h
@@ -73,6 +73,8 @@ public:
double get_time_left() const;
+ TypedArray<String> get_configuration_warnings() const override;
+
void set_timer_process_callback(TimerProcessCallback p_callback);
TimerProcessCallback get_timer_process_callback() const;
Timer();