4.16.1 Cable component rendering and performance issue

I’m using UE4.16.1

I made a grapple system where cable component is a component of my player character and is attached to a dagger (using SetAttachEndTo() function)

When dagger shoot out at a location, cable follows the dagger nicely.

However, when my player starts to move toward the dagger, the cable component start to lag behind my player character’s location.

After some testing, I found out that this problem can be alleviated if I lower the speed of my character or comment out some per tick functions in my character blueprint.

Which lead me to believe it is a performance problem, so I made a c++ version of the exact grappling system, but the same problem still remains.

Does anybody encounter this issue? And how do I remedy the problerm? Is there anway to make the cable component less taxing on performance?

Thank you.

try changing the tick group of the component to post physics, or during physics, and see if that helps at all

Thank you for your suggestion and attention.

I will try it and post my result.

Thank you.

Hi!

I tried changing tick group, but the bug still remains.

Then your post reminded me something important:

I am updating my character’s location in a component tick function!!

I move the logic from component blueprint to character’s blueprint then everything is now acting as expected!!

Thank you very much for your suggestion!

good to hear you got it working, even with a wrong answer xD best of luck mate, good to hear you worked it all out