|
|
@ -63,7 +63,8 @@ int main(int, char**) |
|
|
|
g_d3dpp.BackBufferFormat = D3DFMT_UNKNOWN; |
|
|
|
g_d3dpp.BackBufferFormat = D3DFMT_UNKNOWN; |
|
|
|
g_d3dpp.EnableAutoDepthStencil = TRUE; |
|
|
|
g_d3dpp.EnableAutoDepthStencil = TRUE; |
|
|
|
g_d3dpp.AutoDepthStencilFormat = D3DFMT_D16; |
|
|
|
g_d3dpp.AutoDepthStencilFormat = D3DFMT_D16; |
|
|
|
g_d3dpp.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE; |
|
|
|
g_d3dpp.PresentationInterval = D3DPRESENT_INTERVAL_ONE; // Present with vsync
|
|
|
|
|
|
|
|
//g_d3dpp.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE; // Present without vsync, maximum unthrottled framerate
|
|
|
|
|
|
|
|
|
|
|
|
// Create the D3DDevice
|
|
|
|
// Create the D3DDevice
|
|
|
|
if (pD3D->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hwnd, D3DCREATE_HARDWARE_VERTEXPROCESSING, &g_d3dpp, &g_pd3dDevice) < 0) |
|
|
|
if (pD3D->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hwnd, D3DCREATE_HARDWARE_VERTEXPROCESSING, &g_d3dpp, &g_pd3dDevice) < 0) |
|
|
|