1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

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).
This commit is contained in:
Hugo Locurcio
2021-10-09 08:57:48 +02:00
parent 6f72d9d19f
commit 42d13e29e2
3 changed files with 15 additions and 1 deletions

View File

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