BP Script = Game Lag?

If you have large scripts do that make the game lag?
If yes it do what is normal making it do so?
And can you optimize it bare setting brance in that stop the script from running all the way so i is faster done?

Look out for Event tick, when it’s the same for modding, then normal BP.

The gate option is cool, open and close it, when you want.
:slight_smile:

Ok cool. And i don’'t have any of them. But i do have like 5 loops looking for what items the actor has in the inventory every 30sec. Made with a timer. And also have like 10 delays or so.
Is that something that will slow it all down. Its a script running on a torch and i have like 5 torch in my house and it lags but i do not know if its the script or not.
Is there anyway to check that if its the script doing it?

Does your house lag when you don’t have any torches in it? Does the house lag get worse if you have 50 torches in it? Those are two things that you could try to see how much they are contributing to your lag :slight_smile:

Have not tried to destroy them og build more. Was hoping to optimize the script a little or if there were a tool to see performence of a script. Or in generelt get some good tips :slight_smile:

That sounds complicated for a torch ^^
You could post your BP here.
:slight_smile:

Haha it is. But i have script for items to auto ignite and script to auto turn off at day and night if it has special items. And scripts to add some fuel and scrips to change color :smiley:
Will post it tomorrow. if i dere im new to it. so can sure be made better :stuck_out_tongue:

Look here 24 - 27 for start
:slight_smile: