I recently scripted a way to change my cursor when it starts hovering specific elements of my scene. But this cursor is kind of lagging, the curious thing is that, as soon as it gets back to the regular cursor, it’s way smoother.
Unfortunately this is not super visible in the video…
The script isn’t changing the cursor on every frame, only when hovering started and ended… so it shouldn’t be that performance consuming right? Do you know what could explain this?
There are two types of cursor, hardware cursor and software cursor. You are probably using the software cursor to change the cursor texture. Software Cursors visually lag a few frames behind the actual position of the hardware cursor, which you use to click things. You might want to configure a software cursor for every cursor state possible in the project settings so that this is not noticable and so you can have every cursor type in your game style. Alternatively you should also be able to customize hardware cursor textures but I have not tried that.