Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualBrother Bob

Posted 22 July 2013 - 11:55 AM

I don't think OpenGL 2 even has the notion of early depth test at all (much like how it doesn't specify the exact algorithm for defining the shape of triangles). It was an optimization done by the hardware and as long as it gave the expected results it could do anything it wanted, so early depth tests worked by default simply because there was nothing against it. I imagine that disabling it if you modify the depth in a pixel shader has to do with caching (it invalidates the value in the cache)..

 

Using blending will also disable this hardware optimization, for PowerVR at least.  They call this feature "Tile Based Deferred Rendering" in case anyone wants to look it up.  Those little machines can handle a lot until you turn on blending, and presumably pixel shader depth writes.  Once you do this they slow to a crawl.

 

I haven't gone to any trouble to see if the other embedded system manufacturers have similar schemes running under the hood. 


#2marcClintDion

Posted 22 July 2013 - 03:27 AM

There is far too much arrogance and out right abuse by site moderators, they are teaching other people to behave this way.  The posts I've made will all be shorty removed and replaced with this notice.  Game development is not the only thing being taught here, bad behavior is being taught as well.


#1marcClintDion

Posted 10 July 2013 - 03:12 PM


I don't think OpenGL 2 even has the notion of early depth test at all (much like how it doesn't specify the exact algorithm for defining the shape of triangles). It was an optimization done by the hardware and as long as it gave the expected results it could do anything it wanted, so early depth tests worked by default simply because there was nothing against it. I imagine that disabling it if you modify the depth in a pixel shader has to do with caching (it invalidates the value in the cache)..

 

Using blending will also disable this hardware optimization, for PowerVR at least.  They call this feature "Tile Based Deferred Rendering" in case anyone wants to look it up.  Those little machines can handle a lot until you turn on blending, and presumably pixel shader depth writes.  Once you do this they slow to a crawl.

 

I haven't gone to any trouble to see if the other embedded system manufacturers have similar schemes running under the hood. 


PARTNERS