Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. 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