How to reduce lag with overly complicated models?

I’m making a game that uses fairly high part amount hallways, I use these hallways as templates and copy and paste them to make the structure of the building. That means I had to make 1 standard hallway model and have to copy and paste this alot of times. But with realism comes performance lost, after a few copies and a few pastes I noticed my game running slower. Is there a way to make this less performance asking?

I tried exporting as OBJ and importing but it said I had too many triangles (50k).
It also wont export to blender for some reason, it’s just invisible there.

4 Likes

Ok few things you can do.
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

1. Union parts that share same material

  • Unioning parts will lower the part count so the device doesn’t have to render all of it but don’t get me wrong, union as much as you can but not everything if you do that it will cause performance problems. Just aim for a low count of parts per model.

2 .Make parts bigger don’t add more

  • What I mean is basicly you can reduce the part count and still make the game look detailed by scaling things up little bit like the wires on the walls you can delete some of them and maybe make them bigger so it will fill the space.

3. Lower the triangles

  • What I mean with this is basically used as less as you can with spheres,cylinders make them out from parts and union them it will help you out.

4. Use blender

  • Yeah basically use blender to remove the unnecessary faces.

5. Steraming.Enabled

6. Lighting

  • Well change the lighting technology my advice is if you want shadows but in performance mode just go with Voxel.

7. Collision and shadows

  • Just close Cancolide option for the details that player won’t interact with.
  • ^^ As well as shadows for some parts.

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Edit: Here is the blender solution for the second problem.

If this helped you out please let me know!

Stay safe. :white_check_mark:

3 Likes

You could remove unnecessary parts like when you have finalized the hallway layouts, you can make thew cable and pipes on the walls extend further and combine walls to be 1.

3 Likes