Move actor lag

I’m trying to implement a simple “Move actor under the mouse cursor” behavior. What I noticed that it does not seem to be “instant”, it has a small delay when I move the cursor and the actor follows it (especially when moving the cursor fast). You can see a similar behavior in the Content Examples/Blueprint Mouse Interaction level, if you hold down the left mouse button over a sphere and move the mouse.

Has anyone else noticed this? Maybe the cause of this is that the tracing is too costly operation? Do you know any tricks / workarounds, or implementing it in c++ would reduce this lag?

I also tried to package the project and see if it only happens in PIE, but it’s not the case. My PC is also quite strong so I don’t think it’s a performance issue either.

It’s most likely because camera ticks before the actor, you can fix that by change tick group, problem is you can only do that in C++, but it’s not that hard, heres instructions how to do that:

One note use “override;” insted of “OVERRIDE;” if you use latest UE4. code is little outdated

Thanks, I’ve got it working! :slight_smile:

hello, im also having the same problem inside a blueprints viewport

and i’m trying to move stuffs inside the house but it’s too much laggy and not following my cursor in instant. can you teach me how to reduce/fix the lag. I’m using unreal engine 5