Performance degenerate after time in game

it’s because of you multipliers they will change the height range of you curve.

what i suggest you is to have a curve that go from -1 to 1 ( it will simplify the multiplier setup for later )

if you want to keep it simple and allow different speeds, simply create 3-4 different curve ( with different timing) (if it’s not good for you, you will need different way to do it )

So rename you ‘speed’ variable into “MaxHeight” and remove the *0.1

about the title saying “Performance degenerate”, do you have a problem with fps aswell ?

Hello guys, i have this strange trouble…
i have maked infrared trap so go up and down, like infrared trap of metal gear solid 1, when i init the game work fine, but after some minutes in game the position of laser change and go over the upper flow or over the down floor, the infrared work with time line, i ahve setted by my hand the value , time line is 6 seconds, time 0 vale 0 , time 2 value 2 , time 4 value -2, time 6 value 0 and i use loop for repeat , this is the blueprints.

understand but why the problem appear after some minute of game? i have writted performance etc , for this reason, i try you solution and tell you later if work, thank you!

You can’t use Add World Offset like this. Well, you can, but the result will be not what you want.

The thing is, with very tick the Timeline will add the current curve value to the laser position, but what you really want is for the laser to travel the required distance; I believe you know exactly the top and the bottom points of the laser movement, so you should use that to drive its location.

I’d do it as follows: add two Target Point for the top and the bottom positions each. Then do something like this:

And the curve may be almost the same, but within the range of [0,1].

ok i will try, thank you so much!