_input and _input_event not triggered in the same frame

Godot Version

4.4.1

Question

I am handling both _input and _input_event on a CollisionObjec3D and noticed that they trigger at different frames. Tested it out by triggering the same event and printing Engine.get_frames_drawn(), timing varies from 0 to few frames. InputEvent documentation specifies that CollisionObject3D._input_event() is called last in order but doesn’t tell anything about being called in a later frame. Can anyone elaborate why this is happening?

_input_events is called from “_process_picking” which happens during the physics process in the scene_tree, so depending on your render fps and setting, and physics fps setting, they may not happen on the same frame.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.