Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Camera enabling/calling Camera.Render() extremely slow, generates a lot of garbage

Discussion in 'High Definition Render Pipeline' started by ICudlitz, Jan 12, 2021.

  1. ICudlitz

    ICudlitz

    Joined:
    Jun 25, 2019
    Posts:
    2
    Essentially the same as the title. This is an ongoing issue with the HDRP's rendering system; Enabling a disabled camera generates a gigantic amount of garbage and causes significant frame drops, while calling camera.Render() causes those same drops every single frame.

    They appear to be related to the re-creation of a virtual camera (HDCamera). Is there any way to prevent these virtual cameras from being destroyed in the first place?
     
  2. rayferric

    rayferric

    Joined:
    Jan 3, 2021
    Posts:
    1
    Hello! Were you able to find a workaround?