Hello, I was wondering how I could optimize a game with a lot of parts, for example trees. as roblox studio seems to lag.
Some basic optimizations would be to turn off properties such as CastShadow, CanCollide, CanQuery, and other properties that won’t be used.
Secondly, make sure all the parts are anchored so the physics engine doesn’t have to simulate them.
Also consider moving this to #help-and-feedback:building-support
Use leaf textures placed onto planes. The leaves shouldn’t be individual meshes
they are 1 single mesh, a tree is made from 2 meshes
donot make the trees with alot of triangles
click ctrl+shift+2 and look at the scene thing to know how many triangles are being rendered
you can also enable lod (level of detail) which will replace the far trees with lower quality ones
Do the meshes have transparency? Having a large number of overlapping transparencies can cause problems too.
2 main reasons for lag on your game may be lagging
- High amount of triangles in your trees/leaves
- Transparent leaves, having transparency on leaves on a big forest can lag your game by triple. Try searching for a leaves model that functions without transparency.
Switch the meshes to performance mode
I know. I’m just trying to say that individual leaves shouldn’t have topology. It’s normal to use planes with leaf textures for trees and foliage since it’s so much more performance friendly.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.