Camera FitIntoView is slow (200 ms)
#2
FitIntoView method has multiple arguments that can control how the method works.

By default its fitIntoViewType is set to CheckAllPositions. When the scene has models with many positions it can take quite long to check all positions.

To make the method work faster, can set the fitIntoViewType to CheckBounds - this will check only bouding boxes of each Model3D.

There are also some other overloads of FitIntoView - for example one takes a IList<Visual3D> visuals so you can specify on which Visual3D objects you want to do the check.
Andrej Benedik
  


Messages In This Thread
RE: Camera FitIntoView is slow (200 ms) - by abenedik - 03-10-2021, 11:58 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)