Stencil = Slow

Started by
1 comment, last by Kambiz 18 years, 1 month ago
I was just wondering on one of my old projects I had to remove reflection on the water because it was dramatically decreasing the FPS. I just thought about it if I had a VAST sea, and I used the Stencil Buffer to reflect Everything on (Everything because everything was above the water level) would this of caused the slow frame rate?) If not does anyone have any Ideas why it would of been going slow?
Advertisement
On older nVidia cards you have to be careful how you create framebuffers with stencil bits - 32bit colour + 24bit Z + 8bit stencil is usually ideal (the stencil is then interleaved in the z buffer). Requesting other formats generally punts you back into software rendering (in particular stencil + 16bit colour usually doesn't work).
Aren’t you rendering everything twice with the reflection? (One extra time for the reflection)
If yes then it is normal if the rendering takes twice the time!?

[Edited by - Kambiz on March 7, 2006 11:10:28 AM]

This topic is closed to new replies.

Advertisement