Issue with streaming model behavior

I am currently creating a game with a huge map including lots of trees within the game

the issue is when I set these tree models streaming behavior to atomic with Opportunistic streaming.
I get slow speeds in terms of it rendering in and out of the game even when I group the trees into chunks, I need to figure out a better way to stream in and out the map without causing lag or fps drops

5 Likes

I Recommend Deleting some trees for the mobile players

1 Like

the game is based on trees so I cant really do that

1 Like

Hmm can you try making a trigger that makes the trees disappear wen the players are not looking in their direction.

1 Like

sadly it made the loading times worse but ill try optimizing the trees more

1 Like

How many Parts are in each tree?
How many trees are there?
Do you have CanTouch false in each tree Part? This would help the engine by making it ignore the calculations for the Touched property for each Part.

What happens when you reduce your StreamingEnabled distance(s)?

1 Like

each tree has 5 parts and they are grouped together and they are optimized with disabling as much as I can do and setting the meshes collision to hull. but i think i will optimize the trees more by reducing part count and see if that works

1 Like

Can you give more detail on what is being set to atomic? Is each individual tree an atomic model? Or are all trees in a single atomic model?

Do your performance issues go away if you don’t use atomicity?

1 Like

I don’t quite know what streaming behavior is, but I can give some tip on how to optimize in general. you can create 3 extra tree models:

  1. A lesser detailed model. (Less parts)
  2. A even less detailed model, that is made of only 2 blocks or 3.
  3. An imagelabel inside a billboardgui of a low quality image of the tree model. You can also use a decal in an invisible part instead.

These 3 variations can be displayed and replace the normal tree model at a set distance away from the player.
I also would recommend not doing this every renderstepped, and instead maybe every 8 seconds for PC users. For lower graphics you can set the rat" to 13 seconds and the distance a bit lower.

1 Like

In general, you can exclude from streaming the trees that are in the foreground, and the trees that are in the background, put into streaming
Here in the screenshot I visualize
Red - Streaming
Blue - Not Streaming


Well, as the others wrote, you can try to optimize the trees themselves as much as possible, maybe remove them in some places.
Or in the end, this is the problem of streaming itself

1 Like

each tree is set to atomic same with the base models i used for my game

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.