Click to See Complete Forum and Search --> : DirectDraw Acceleration is enabled or not???


ashwath_h
August 29th, 2005, 05:24 AM
hi all,

How to check programmatically whether the DirectDraw acceleration and Direct3d acceleration is enabled or not?
Can anyone kindly help me on this.

Thanking you,
ashwath

Mike Harnad
August 29th, 2005, 09:35 AM
You can use IDirect3D9::CheckDeviceType(), however, that will only tell you if an accelerated device can be used with the adapter. It will not tell you if one is being used. If you're creating the device, you should always try to create a hardware accelerated device (using D3DCREATE_HARDWARE_VERTEXPROCESSING). You would know if it's accelerated when you checked the return code from IDirect3D9::CreateDevice()