Game performance help

Well I have a real simple question, that I doesn’t know the answer. xD

Which cost the performance much?

Rendering ‘one’ object whose almost a half is not Visible in-game(Out of the game world. I.e: A long wall covering a area, whose one corner is behind another wall which is not visible)?

Or Rendering ‘Two’ objects where both are Visible? (I.e: 2 short walls covering a visible area.)

Please help. I’m sure you’ll catch my meaning. Sorry for bad English.

Guys please…

Generally, less drawcalls is better performance (thus, less seperate objects). However, smashing everything in a single object is not always the best approach. It really depends on how large the objects are, how many verts and triangles they contain etc etc. What you ultimately want to do is to reduce the amount of drawcalls on the screen, while not rendering too much off-screen (objects that are partially visible) and also keeping the verts/triangle count low. Drawcalls are more of a bottleneck nowadays than triangles and vertices are though.

Zo you mean one object is better?

No, my answer is: It depends

If the objects are quite small and dont take up a lot of space, it is better. However, if they span a big area sometimes it isnt

Ok! Thanks.