FPS drops if the train moves with objects

Hello, everyone!

I’m making a game about trains. The train moves along the spline as a Bluprint object, in which other objects (people, objects, etc.) are placed.

So, when the train goes as one carriage without objects - in the game FPS is kept around 60. If I add objects to the car, the FPS drops to 40 or lower depending on the number of objects in the car. That is, even if I’m standing on the street and looking at the floor - FPS is still low. As soon as I remove objects from the carriage and look at the floor - FPS increases.
That is, the engine probably calculates the movement of each object in the car and lowers FPS.

How to solve this problem?

Here are a couple of screenshots.

Are you attaching the objects?

The objects are inserted and attached to the wagon.

1 Like

I’ve certainly found, that the more objects you attach to an actor, the slower it will move, as the engine has to move all the attached objects also.

Is there a solution to this problem?

It’s not a bug or anything, it’s just what happens when the engine has to manage more objects.

I think it’s why a lot of people just move the surrounds when you’re in the train to make it look like it’s moving.

Also, if you’re watching from outside, can you actually see any of these actors?

How is it supposed to work? ( in an ideal world ).

In this case you can not move the map, there are many objects, trees, houses, landscape, rivers and so on.

I see all these objects, the character himself rides the train.

I was looking at your pics again, it seems that the carriage is one big blueprint?

I was talking about problems when you attach separate actors to each other.

Are you doing the first, or second? Thanks :slight_smile:

Yes, it’s one big blueprint. There are many other objects in it. They create the load, FPS drops.

Hmm, it’s strange that it happens with everything in one BP.

How are you moving the train?

I think it’s this (the developer did and won’t get back to me):

Ok, so it moves at the same rate, but you just get the FPS drop, I think…