0 votes

I've just noticed that if you are using a custom mouse cursor, and if the game starts to lag just a bit, your cursor movement is actually delayed (it's noticeable, but rarely, dependent on how much lag you get).

Howver, if you don't use a custom mouse cursor image, this mouse lag doesn't happen at all. I'm wondering if it's possible to run that mouse cursor image update method inside a seperate thread, so it will have the same effect as the regular mouse cursor (no lag movement, even if lagging).

in Engine by (307 points)
edited by

1 Answer

+2 votes
Best answer

Custom mouse cursors are emulated by Godot as a sprite on top of the scene, that's why they are affected by lag. According to this issue, custom mouse pointers will be rewritten in 3.0 so they use the system's API instead, then I guess they won't be affected by lag anymore.
Meanwhile... don't use custom pointers, or optimize.

by (27,902 points)
selected by

I see, thanks!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.