N
N
ncoxall2016-09-26 08:06:25
JavaScript
ncoxall, 2016-09-26 08:06:25

How to reduce the number of objects scanned through raycaster?

I have a problem:
there are 50 raycasters and only 25 objects in the scene! and I get fps drops by 25 frames, but if you remove these 25 objects and leave one floor, then everything is ok! (I get the maximum possible 60fps) The
question is: what are the approaches to optimize this business?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2016-09-26
@ncoxall

scatter objects on different layers, and raycast only the layer whose objects you need to check.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question