Advertisement

is the stencil buffer hardware accelerated ?

Started by January 22, 2003 10:34 AM
5 comments, last by LongJohn 21 years, 9 months ago
hi, i was wondering why my performance is extremly bad when making reflexions with the stencil buffer. is this not hardware accelerated on my GF4 ? //im reflecting moving spheres (32,32) with one light. //math for movement is simple.
Well it should be fine but you haven''t mentioned what the rest of your specs are but I doubt you have a shit P.C. if you have a GF4. What do you mean extremely bad anyway? It''s running at something like 2fps? Oh and you don''t actually do the reflection bit with the stencil buffer really. The stencil buffer just allows you to not draw the bits of the reflection you shouldn''t be able to see
Advertisement
it´s a GF4/athlon1,1.7ghz/512mbDDR,etc..
slackware linux GLX/openGL/gcc3.2

this IS the scene,7 textured ´32 spheres ticking around,with a few quads/lines/triangles (only a few!)

running 1024/768/16

without mirror..i guess 50-150 FPS
with mirror..15 FPS at max.

the strange thing is it´s always 15 FPS not depending if i look in the mirror or not !



quote:Oh and you don''t actually do the reflection bit with the stencil buffer really. The stencil buffer just allows you to not draw the bits of the reflection you shouldn''t be able to see


so this shouldn´t cost any performance ?

No I was just saying about the stencil buffer not actually doing the reflections cause, well it sounded like you thought it did.

Well I don''t know why it''s running slow. Post your render code so I(or someone else) can take a look at it
Try to turn your resolution to 32 bits depth, this may help.
as far as i know X only does 24 bit depth.

could anybody think about 14 spheres beeing so mutch ?
Advertisement
quote: Original post by LongJohn
as far as i know X only does 24 bit depth.

could anybody think about 14 spheres beeing so mutch ?


When set to use 24-bit, X will usualy use 32-bit instead, it depends on the server.

This topic is closed to new replies.

Advertisement