Skip to main content
GameDev.net gamedev.net
🔒 Locked

Z buffers

Started by ELFanatic Jul 29, 2006 at 12:41 AM 1 replies 450+ views
Original Post
ELFanatic
ELFanatic
Do z buffers increase performance? Will it check for overlapping geometry and only draw the foremost polygon?
JohnBolton
JohnBolton
The Z buffer itself improves performance on a per-fragment basis. If the GPU determines that a fragment is obscured (by comparing its Z to the Z buffer), then it will skip any further processing.

In addition, modern video cards have early Z rejection. If the GPU determines that an entire triangle is obscured, it will be skip the entire triangle.
John BoltonLocomotive Games (THQ)Current Project: Destroy All Humans (Wii). IN STORES NOW!
silencer3
silencer3
if you would sort everything from most far objects and use BSP, PSV etc. you could achieve higher speed than with z-buffer just turned on. to increase performace with z-buffer it is best to sort objects from nearest to most far (if in reverse direction then it will need to render nearly everything and it can just happen due to unsorted objects)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.