Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
31 Views

Performance Tip: Use Gen4s Occlusion Query

GMA X3000 supports the D3D occlusion query capability, which can be used to reduce overdraw.

Refer to IDirect3DDevice9::CreateQuery(). This query capability can be used to count the number of pixels that passed the Z test. With this you can determine if an object is potentially visible by rendering its bounding box. If the query returns zero then the bounding box was not visible so there is no need to render the object. This can provide a very large performance boost when it is used on complex objects such as trees that contain hundreds of branches and leaves. The technique should not be used on simple objects since the bounding box test could be more expensive than simply rendering the object. When rendering the bounding box be sure to turn off both Z writes and color writes.

0 Kudos
1 Reply
Highlighted
31 Views

More info aboutIDirect3DDevice9::CreateQuery on MSDN:

http://msdn.microsoft.com/en-us/library/bb174360(VS.85).aspx

==

Lexi S.

IntelSoftware NetworkSupport

http://www.intel.com/software

Contact us

0 Kudos