Hi. I am using a timer and setting the timeout value to small values (I tested in the 20-50 msec range, so timeout values of 0.02-0.05) and the timeout function is being called at inconsistent intervals, for example I tried logging as follow:
var last_ms = 0
func _on_Timer_timeout():
print("timeout: ", OS.get_system_time_msecs() - last_ms)
last_ms = OS.get_system_time_msecs()
and the output, when setting a timeout of 0.04:
timeout: 1638228320954
timeout: 33
timeout: 33
timeout: 50
timeout: 34
timeout: 33
timeout: 50
timeout: 33
timeout: 50
timeout: 34
timeout: 33
How can I figure out why the timeout interval is inconsistent? Thanks in advance