is the stencil buffer hardware accelerated ?
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
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 ?
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
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
as far as i know X only does 24 bit depth.
could anybody think about 14 spheres beeing so mutch ?
could anybody think about 14 spheres beeing so mutch ?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement