Godot: Mouse Cursor lag

Created on 30 Nov 2017  路  2Comments  路  Source: godotengine/godot

Operating system or device, Godot version, GPU Model and driver (if graphics related):
Linux debian buster, Godot engine 2.1.4, AMD Radeon R9 290 (AMDGPU + radeonsi)

Issue description:

Since this bug has been closed, and I still need to create a custom cursor for my project, I (re)open a bug about the laggy mouse cursor.

As you can see, the custom cursor is one frame late.
mouse-lag

Steps to reproduce:

  1. Create a new project
  2. Create a new scene with only one Control node inside. Save it as main.scn and put it as autoload in the project.
  3. Attach the following script to the node
extends Control

# Declare a custom cursor here
const MOUSE_CURSOR = preload('res://icon.png')

func _ready():
  Input.set_custom_mouse_cursor(MOUSE_CURSOR, Vector2(11, 5))
  Input.set_mouse_mode(0)
  1. Run the scene
bug core

Most helpful comment

it's really annoying for a desktop game

All 2 comments

it's really annoying for a desktop game

Once merged, this pull request will solve this issue as hardware cursors do not suffer from an one-frame delay. It will be more limited than using a software cursor, since you will only be able to use a 32脳32 cursor (which may not always be enough, especially on hiDPI displays).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ndee85 picture ndee85  路  3Comments

n-pigeon picture n-pigeon  路  3Comments

SleepProgger picture SleepProgger  路  3Comments

gonzo191 picture gonzo191  路  3Comments

testman42 picture testman42  路  3Comments