GMS 2 Odd problem with window_mouse_set and fullscreen mode


I am experiencing an odd problem when I try to set the mouse to follow an objects positions when I have fullscreen on. It kinda follows the object, but does a poor job. The weird thing is that when I alt-tab out to different window, and then alt-tab back into game (it is still in fullscreen), it suddenly does a much better job at putting mouse in right positions. This is so odd to me, because I have not changed anything, so how the heck can this happen? Does anyone have any idea?

Edit: it seems to have something to do with the frame rate. Because if I lower the frame rate from 60 to 30, now it suddenly works! Still confused about it though.
Last edited: