Developing Games on Intel Graphics
If you are gaming on graphics integrated in your Intel Processor, this is the place for you! Find answers to your questions or post your issues with PC games
489 Discussions

Performance Tip: Use Gen4s Occlusion Query

Chuck_De_Sylva
Beginner
789 Views

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
Intel_Software_Netw1
789 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
Reply