Sign in to follow this  
TempHolder

Stencil = Slow

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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).

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this