Lag issue in infinidash

I need help fixing the lag issue becasue after a while it lags a lot.

Oof, are you using a lot of raycasts?
image

14 fps is horrible that’s a lot of lag

1 Like

oh yeah every single peice of terrain has 4 raycasts And is checking every like 5 milliseconds I think, alright I see your point

1 Like

anyway I can optimize it?

1 Like

So what are these raycasts for?

I fixed the issue (I think) but it was to get connected textures, made by yours truly but since it was made by me it was less then optimal

1 Like

You could make them only activate when inView (if you havent already), that should help a lot.

how do I do that? idk where that is

At the very bottom of the triggers category of the behavior editor, which is the first category at the top. It is also the category of behaviors you are in by default.

1 Like

thank you

pk[;mkmmlmn k n k

1 Like

no problem

You can also type something like this below

<twenty chars example text>