- Home /
Large number of objects problem
Hello guys.
In my project i use to my characters (2d game) a great number of planes with textures on them. Each character have 2 other planes to eyes and stuff and both of them change with time. When I have 40 characters in game, I have 40 X 3 = 120 planes, and it starts to have slow frame rate.
http://vonlehecreative.wordpress.com/2010/01/06/unity-resource-gameobjectpool/
I used this website to help me on recycle objects but didn’t help at all because my characters have a life time between 1 and 2 minutes. Any help?
do you use unity primitives (plane contains 200 tris) or your own custom plane with 2 tris?
how much different materials are used on that planes?
do you now about batching and mesh combining?
Answer by Loius · Aug 13, 2012 at 10:23 PM
One way to increase performance is to use planes built in a 3D modeling program. Unity's planes are 200 polygons; an actual plane is 2.
Sounds like you should look into the logic you're using as well and see if you can find time-expensive sections to improve.
sorry for my english, but when i said planes i was refering to unity primitive plane and not the airplane.
@tpedrob: We also talk about planes (those flat things mostly square or rectangular ;)) The plane mesh that comes with unity is subdivided, so the mesh consists of 10x10 quads (10x10x2 tris). This is useful for vertex lighting or if you want to use it as cloth. As simple plane it's total overkill. That's why it's better to create a simple plane in a modelling app and import it.
When you say you have 120 (unity) planes that means you have around 24000 triangles
Your answer
Follow this Question
Related Questions
Make a plane show the cameras "fov" 0 Answers
Zoom into a very large image(z-fighting problem) 0 Answers
Seamless tiling of automatically textured planes 1 Answer
Can't add texture to procedurally generated plane 1 Answer
How to make a plane? 2 Answers