Layered Rendering Performance

Hi all,

I’m doing some investigation into layered rendering performance (rendering to an array texture) and I’m wondering if anyone here has some insights.

It seems that when rendering to an array texture, there’s a significant performance hit versus a normal single-layer FBO. In fact, there’s a performance ceiling, where regardless of whether I’m running complex shaders or not, I get about the same frame rate.

The only explanation that I can think of is that the GPU is doing some kind of “context switch” between the multiple layers of color/depth buffers.