x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Mouse cursor lag (very noticable)

So I'm trying to solve this problem for about 5 hours now with no luck.

Basically, the coordinates of the cursor (from the Get Mouse Position node from player controller) are lagging several frames behind the position of the cursor that I see on screen.

I first noticed it when I made a movable UMG widget, and I thought "okay.. UMG is perhaps a little delayed in the renderer".

So then I tried some of the normal draw HUD functions and the draw debug functions and all had the exact same result.

So I figured the problem must not be rendering but the actual x,y coordinates from the Get Mouse Position node are the coordinates of the cursor from several frames ago (definitely feels like a lot more than a 1-frame lag btw).

At first you could think this is a mouse acceleration issue, there is even a big thread in the UT4 forums about how unresponsive the input in UE4 is compared to older game engines but the issue I'm currently having right now seems to be something like a frame buffering issue.

So my question is: where is this delay coming from?

Here is a simple test you can do with blueprints. (in HUD blueprint) alt text

And this is the result (animated GIF, you might need to wait for it to load): alt text

As you can see if you move the mouse fast enough the difference can get over 30 pixels in distance. alt text

If your game relies in fast precise clicks this is going to cause huge inaccuracy.

Product Version: Not Selected
Tags:
more ▼

asked Dec 12 '14 at 06:30 PM in Bug Reports

avatar image

TK-Master
161 13 16 24

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hello TK-Master,

I was able to reproduce this issue on my end. I have written a report (UE-6675) and I have submitted it to the development team for further consideration. Thank you for your time and information, I will provide updates with any pertinent information as it becomes available.

Make it a great day

more ▼

answered Dec 15 '14 at 03:30 PM

avatar image

Rudy Q ♦♦ STAFF
47.5k 545 132 522

avatar image DragonHunt10 May 12 '15 at 09:39 AM

Any updates on this?? we were using the Draw HUD to create our own cursors as well, as the 4.7 version has some focus issues with custom mouse cursors, but the lag is causing some issues with playtesting.

avatar image Rudy Q ♦♦ STAFF May 12 '15 at 02:40 PM

Hello DragonHunt10,

I went ahead an double checked on this issue for you. After reading over the comments section for this issue I found that this is an issue that is caused by the software cursor lagging behind the hardware cursor. It appears that this is a limitation for software cursors. In the case of the above example, this could be made less noticeable by hiding the default cursor and applying a custom software cursor so that they would both move and the same speed.

Make it a great day

avatar image _neo_ Apr 15 '16 at 04:37 PM

Sorry but it's not that simple. We are having this issue also, because we use custom UMG widget for mouse cursor. And this issue becomes even more apparent when in low fps situations, which leads to a heavy mouse interaction, instead of smooth as the default version.

We are also using GetMousePosition() Any chance to have a fix or alternative to GetMousePosition()?

UE4 4.11.1.

avatar image Rudy Q ♦♦ STAFF Apr 15 '16 at 05:41 PM

Hello neo,

As stated in my previous post, this is a limitation of software cursors. I do not currently have a workaround for this issue.

avatar image Naitguolf Sep 25 '17 at 04:03 PM

Hi. About the issue, It also affects the touch actions, not only the mouse, if we want to use a widget to be located where the finger is actually pressed. So there is any workaround for that?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question