Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

GPU spike from RenderTexture.SetActive

Discussion in 'Editor & General Support' started by TommiH, Aug 8, 2019.

  1. TommiH


    Jan 14, 2008
    We're additively loading small scenes containing terrains. Unfortunately, every time we load one, we get a GPU spike from the RenderTexture.SetActive function, under Terrain.UpdateHeightmapTexture. Our heightmaps aren't particularly big (1024x1024), so I'm pretty stumped about what could be calling this. All I know is that if I strip our main scene (not the small scenes I'm loading) to bare minimum, the spikes go away. So somehow either the size of our scene or something specific in the scene is causing this.

    Any thoughts would be greatly appreciated. Profiler - RenderTexture.SetActive.PNG