Archive 17/01/2023.

Physics Time Increases when more nodes are visible

TrevorCash

I am a bit confused as to why I time spent in UpdatePhysics (in the profiler) changes with respect to how many nodes are visible. Below is the same scene with different camera zoom levels:

Is it because something about the draw calls actually happen in the physics update?

Zoomed Out (many nodes visible):
image

Zoomed In (very few nodes visible):
image

Eugene

The less your FPS is, the more frame time is taken by physics computation (because physics FPS is always fixed). Don’t let your FPS go below 60 to prevent it.

TrevorCash

Thanks Eugene - After looking at the source a bit I can see this now.