Why is zbuffering slow?

Started by
4 comments, last by wolfman8k 23 years, 7 months ago
is zbuffering slow because it''s time consuming to calculate the zvalue of each pixel, or because your drawing lots of polygons that you won''t see anyway? Example: If I draw 1000 polys randomly without sorting, and then I draw 1000 polys with zbuffering. Will there be a small or large time difference? Thanks, wolfman8k
Advertisement
You''ll have a serious mess of polygons that do not occlude eachother properly with regard to depth - that''s what the z-buffer is for.


Give me one more medicated peaceful moment.
~ (V)^|) |<é!t|-| ~
ERROR: Your beta-version of Life1.0 has expired. Please upgrade to the full version. All important social functions will be disabled from now on.
It's only funny 'till someone gets hurt.And then it's just hilarious.Unless it's you.
With hardware, z-buffering is a minor speed hit. The main performance area is reading/writing to the z-buffer. The calculations of z for each pixel is probably done by the hardware whether or not it''s enabled or disabled.

You can improve hardware z-buffer performance by trying to render front to back (reduces writes to the z-buffer.)
Check out :
http://www.beyond3d.com
http://kyro.st.com
http://www.powervr.com

to see why current boards architectures sucks.

Yes you''re writing and texturing and shading MANY pols that you WON''T see.

There are some tricks to handle this bad hardware design, one of them is to do front to back sorting, as stated above.



-* So many things to do, so little time to spend. *-
-* So many things to do, so little time to spend. *-
So:

If I draw 1000 polys randomly without sorting, and then I draw 1000 polys with zbuffering. Will there be a small or large time difference?

I know the output will be different. I want to know if zbuffering will be a lot slower or just a little slower.

Thanks,
wolfman8k
Well if you use hardware z-buffering, there will be little difference , so don''t worry about your FPS.




OoOoOoOoOoOoOoOoOoOoOoO
oO LeGroove Oo
OoOoOoOoOoOoOoOoOoOoOoO
OoOoOoOoOoOoOoOoOoOoOoO oO LeGroove OoOoOoOoOoOoOoOoOoOoOoOoO

This topic is closed to new replies.

Advertisement