my model make my game lag, how can i compressed it ?

Hi, all, sorry i want to ask how can i compress my model in my game, because my model make my game lag. When i only use 5 model, my game not lag, but when i use 10 model, my game lag and can’t play anymore because of lag, how can i compressed my model, or how can i make my game not lag when i use many model on it ?

my model is in FBX file.

Thanks

I don’t know if there’s any program to lower the poly count for a 3d model automatically, otherwise you’ll have to do it yourself with a 3d modelling program. If you got the model from someone or somewhere, try to ask if you could get a lower poly version for tht model. It’s not the file size what causes you lag, it’s the amount of poligons for your 3d model, which might be too high for a videogame. Especially if you’re aiming for mobile platforms (such as android) you should take into account that those devices can’t hold many poligons on-screen at the same time.

Someone correct me if I’m wrong, but no characer in your game should exceed 1500 poligons at average (when aiming for a mobile platform at least). You can check the number of triangles of your character’s (or model) mesh through the inspector. Just double-click on the “mesh” property of the meshFilter, feedback on the number of triangles for your model might help people here to tell you what’s going on more precisely.

Hope it helped, it’s not an easy to “fully-answer” question

Either simplify the model in your modeling program, or use an external tool such as PolyTrans.

However, the most important thing is to reduce draw calls. One important Unity tool to help reduce these is CombineChildren.cs in the StandardAssets.

Other than that, we would need some more information about your model (how many triangles, meshes, materials, drawcalls, …).