Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Poor Performance In VR
#4
(11-11-2020, 10:45 AM)SyDRoX Wrote: I just noticed the time settings photo wasn't uploaded. The VR headset runs on 90 fps thus fixed timestep is 0.011;
[Image: Screenshot-2020-11-11-114552.jpg]

I've tried playing with these settings, however, nothing seemed to make things better. Obi is also set to 1 physics step per frame with no substeps. 
I'm not entirely sure what do you mean by "using a smaller neighborhood radius", could you elaborate?

I think there's a big misunderstanding here: in a fixed-timestep scheme like Unity's, you have no direct control over how many physics steps per frame are taken.

This is entirely decided by the engine, based on 3 factors:

- How much "wall-clock" time the last frame took to render.
- How much "game time" is simulated by a single timestep.
- How much "game time" we're allowed to simulate in a single frame.

Physics steps have a fixed duration in seconds (the "fixed timestep" value in your Time settings). If a frame takes a long time to render for whatever reason (including physics calculation itself), to keep up with rendering it might not be enough to simulate physics just once during the next frame. Two, three or more physics steps might be necessary in a single frame.

Updating physics isn't free though, so taking more than 1 step might make the current frame to take even longer to render than the previous one, worsening the situation. This causes a downwards performance loop that will only stop once you reach Unity's max allowed timestep setting. However the game might not be able to recover from it at this point. So you can't conclude that having a refresh rate of 90 fps and a step duration of 0.01 (which is quite small), only one step will be taken. This situation is known as death spiraling (aka well of despair, timestep crunch, and many others).

The hallmark of death spiraling is FixedUpdate() appearing more than once per frame in the profiler. In your case, max fixed timestep is set to 0.055, and fixed timestep to 0.011, so under performance stress your game is taking: 0.055 / 0.011 = 5 steps per frame. The profiler isn't lying Guiño.

Long story short: use a longer timestep or reduce your max timestep.
Reply


Messages In This Thread
Poor Performance In VR - by SyDRoX - 10-11-2020, 06:09 PM
RE: Poor Performance In VR - by josemendez - 11-11-2020, 08:49 AM
RE: Poor Performance In VR - by SyDRoX - 11-11-2020, 10:45 AM
RE: Poor Performance In VR - by josemendez - 11-11-2020, 11:01 AM