• Advertisement
Sign in to follow this  

Stencil = Slow

This topic is 4341 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
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).

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
Sign in to follow this  

  • Advertisement