Skip to content

PassthroughLayer in multiplayer casuses low fps. #2

@psih369

Description

@psih369

Each player pawn has an OculusPassthroughLayer component. Every other player in the lobby has it too.
So, any player has an x-amount of OculusPassthroughLayer in the scene. This results in a terrible performance issue when more than three player pawns are in the scene.

Tests methodology:

  1. create player pawn
  2. add OculusPassthroughLayer - StereoLayerShapeReconstructed
  3. launch a multiplayer session with 5+ players, join this session with your quest device
  4. the quest will try to render n-amount of PassthroughLayer, that will cause performance issues
    For easier testing - setup 3d scene with significant GPU usage (70-80%)

Result:
GPU profiling will show, that vulkan is waiting for something and doing nothing.
There will be significant passthrough video feed glitches and stutter. Unlick regular game performance issues, where only game is laggy, but video keeps stable fps.

Potential solution/fix:
Spawn OculusPassthroughLayer only on local player pawn, so there is only one OculusPassthroughLayer in the entire world for each player.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions