I’ve tried to get mouse position on ENTER_FRAME, EXIT_FRAME events from the MouseEvent instance (event.localX/event.localY), also I’ve tried to use mouseX/mouseY properties instead but result is the same…
Yep. Arch Linux with i3wm and compton as a compositor if any of that matters
Lime - 4.1.0
OpenFL - 5.0.0
So I tried html5 build. It feels like better but still has some notible lag: https://www.youtube.com/watch?v=BJf16uMORho (looks like I recorded 30fps instead of 60 but I hope it’s still visible…)
I used MOUSE_MOVE this time.
Actually it looks like it gets the position which was exactly one frame before… hm…
I think that you can not get rid of the lag (at least one frame lag will always be).
But you can hide hardware mouse cursor, and draw sprite at mouse coordinates.
I tested a recent and a very old version of OpenFL. Both produced about one frame of lag (I suspect it was exactly one frame, but I’m not sure). Both of these were C++ builds for Linux.