By
RoverTurbo
Not drawing some objects like scope overlays, Sea and sky can be benefical.
Returning zero for these objects will give you that effect.
Code:
HRESULT APIENTRY IDirect3DDevice9::DrawIndexedPrimitive(D3DPRIMITIVETYPE Type, INT BaseVertexIndex, UINT MinIndex, UINT NumVertices, UINT startIndex, UINT PrimitiveCount)
{
if(Object Here)
return 0;
return Device->DrawIndexedPrimitive(Type, BaseVertexIndex, MinIndex, NumVertices, startIndex, PrimitiveCount);
}
Credits: Directx documentation.