Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. 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?