From 6f823687b59277a5cb9152ab6630c62bb6c1dbbc Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Fri, 23 Jul 2010 19:49:56 +0000 Subject: [PATCH] enable GPU cloth (not CPU) and disable debug setting (D3D11_CREATE_DEVICE_DEBUG) --- Demos/DX11ClothDemo/cloth_renderer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Demos/DX11ClothDemo/cloth_renderer.cpp b/Demos/DX11ClothDemo/cloth_renderer.cpp index 07848f731..9d65257cb 100644 --- a/Demos/DX11ClothDemo/cloth_renderer.cpp +++ b/Demos/DX11ClothDemo/cloth_renderer.cpp @@ -40,9 +40,9 @@ class btDX11SIMDAwareSoftBodySolver; #include "BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.h" //#define USE_SIMDAWARE_SOLVER -//#define USE_GPU_SOLVER +#define USE_GPU_SOLVER //#define USE_VERTEX_SOLVER -//#define USE_GPU_COPY +#define USE_GPU_COPY const int numFlags = 2; const int clothWidth = 40; const int clothHeight = 60;//60; @@ -708,7 +708,7 @@ void InitApp() bool CALLBACK ModifyDeviceSettings( DXUTDeviceSettings* pDeviceSettings, void* pUserContext ) { // Uncomment this to get debug information from D3D11 - pDeviceSettings->d3d11.CreateFlags |= D3D11_CREATE_DEVICE_DEBUG; + //pDeviceSettings->d3d11.CreateFlags |= D3D11_CREATE_DEVICE_DEBUG; // For the first device created if its a REF device, optionally display a warning dialog box static bool s_bFirstTime = true;