Alex
Alex

Reputation: 11147

lowering draw calls by not drawing things that are not visible

I was searching for methods to optimise my game.

I was thinking if there is a way to not draw the objects that are in the camera view but are not visible to the viewer?

The thing is that i need to lower my draw calls and at any given time, there are at least 12 game objects that are not visible to the camera. Can this be done?

Upvotes: 6

Views: 3305

Answers (2)

NabeelSaleem
NabeelSaleem

Reputation: 879

Kay is right to reduce draw call of objects which are not visible you need to use occulusion culling,

and if you still wants to reduce more draw calls you should use Free unity plugin "Draw Call Minimizer" by Purdyjo available on asset store.
and here is its unity video tutorial

Upvotes: 3

Kay
Kay

Reputation: 13146

What you are looking for is called occlusion culling and it's a built-in feature in Unity. In order to lower the number of draw calls there are some more techniques interesting for your problem:

Upvotes: 5

Related Questions