Linking Area2D to mouse position

Godot Version

4.3

Question

I want to add an area of influence using an area2D on the players mouse(for selecting groups of objects for example). This works mostly fine, however when the camera moves quickly the area2D hooked to the mouse lags behind significantly.

I’ve done two methods, one where I had the area2d be a child of the camera and be set to local mouse position in _process(), and one where the area2d was on it’s own and followed the global mouse position in _process(), both yielded the same results.

Video below shows this in action. Moving the mouse around normally yields some slight delay but that is expected, however when I attach the camera to the moving planet in the game and speed up it’s movement, the area2D lags behind significantly.

another thing to add, when turning off vsync and having the framerate go up, the lag behind lessens, however it is instead replaced by an awful jittering of the mouse movement.

Issue has been resolved, I ended up using the method where the area2d was the child of the camera, and then in a hail mary attempt I added the change in position of the camera(velocity) to the mouse position to find the area2D’s position and it fixed somehow.

If further context is available lmk