Hey everyone! I have a problem when I try to get the position of my cursor. I have a full screen JFrame and I have active rendering with a continously running for loop. In the loop I try to draw a rectangle at the position of the mouse with getMousePosition, but when I move the mouse the rectangle comes after. The cursor is moving exactly like it should, but the rectangle moves really slow. I have around 60 FPS.
Without the code I'm mostly guessing but it's likely you have a resource contention where your active main-loop thread is different from the EDT which would be handling all AWT events.
If you're planning on running a full-screen game with active rendering it might be worth while looking into a framework such as lwjgl or Slick2D (slightly higher level) that will give you full control over the drawing as well as the input events.