Instruments: Entity Count, Shadows Draw Calls, etc

Profiling our project, we noticed a few odd things in Instruments, and were wondering if anyone could shed some light on what they mean:

Entity Count. This is very high (>10k) - what does this correspond to? GameObjects?

Shadows Draw Calls. Over 20k of these, but shadows are not supported? We aren’t using VisionOSGroundingShadow.

Shadows Triangles / Shadow Vertices. Extremely high - 20m / 19m

Any ideas? Google isn’t much use here :slight_smile:

Yes, we create at least one Entity per GameObject, and there are a few cases in which we create additional ones (for skinned meshes and particles/trails), but if you don’t have on the order of 10k GameObjects, then that entity count does seem very high.

I’m not sure offhand what might be going on with the shadow counts. It would be interesting to compare the results to a bare-bones Unity project (perhaps just a single cube) and/or a non-Unity visionOS project. I can make a note to try that.

is having that many entities costly in performance on their own? or only when they or their hierarchy are changed?
there is a lot of gameobjects that are just used for readability rather than the transform they provide, they are essentially an identity matrix and/or unused for their transform

As far as I know, having a large number of entities shouldn’t be an issue in and of itself. However, if you find that that causes slowdown, it’s definitely worth filing a bug report and letting us know the incident number (IN-#####) so that we can investigate.