D
D
Davilkus Games2021-11-22 17:25:43
C++ / C#
Davilkus Games, 2021-11-22 17:25:43

Do you use occlusion culling?

A friend told me that if there are few objects (or they are not heavy), then this can affect performance, because. Unity Raycast-it every object. Is it so?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ivanavdieienko, 2021-11-22
@Davilkus

If there are few objects on the scene, then there is little practical sense from occlusion culling either. If it's not, then you'll get a nice performance boost. As for raycasting, occlusion culling can be used if the objects in the background are definitely not the raycast target. If there is no such confidence, you should not use occlusion culling. In this case, it makes sense to get rid of raycasts in favor of less loaded solutions. raycasts themselves also carry a considerable load.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question