I believe some players in my game are having issues with vertex processing. However, I'm confused about this line for adjusting:
if (devType == D3DDEVTYPE_REF) hardware = false;
DWORD flags = (hardware) ? D3DCREATE_HARDWARE_VERTEXPROCESSING|D3DCREATE_PUREDEVICE : D3DCREATE_SOFTWARE_VERTEXPROCESSING;
I want to use If ....SupportsHardwareTransformAndLight Then to check if vertexprocessing is enabeld, which is fine, but I look at the above and wondering what exactly it is doing. Is it checking if vertex will work, otherwise use software? Or is it trying to use both? Shouldn't it be one or the other? aka D3DCREATE_HARDWARE_VERTEXPROCESSING|D3DCREATE_PUREDEVICE or just D3DCREATE_SOFTWARE_VERTEXPROCESSING ?
From what I gather it means if TRUE then do hardware, if false, do software.