Hello, I would like to hook some directx9 functions to increase some games performances on cheap pc.
The idea is to remove alpha blending which causes big degradation in rendering performances.
The simpliest way I see is replacing
LPDIRECT3DDEVICE9->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE );
by
LPDIRECT3DDEVICE9->SetRenderState( D3DRS_ALPHABLENDENABLE, FALSE );
LPDIRECT3DDEVICE9->SetRenderState( D3DRS_FILLMODE, D3DFILL_WIREFRAME);
and the reverse.