aboutsummaryrefslogtreecommitdiff
path: root/samples/SampleBase/physx/PhysXController.cpp
diff options
context:
space:
mode:
authorAnton Novoselov <[email protected]>2017-08-14 16:41:28 +0300
committerAnton Novoselov <[email protected]>2017-08-14 16:41:28 +0300
commit9a1c1d814f3fa0b54b49d90b43130c02bc280f44 (patch)
treeeae6ead883173c66619c30b6a1ed085f3cb70f4d /samples/SampleBase/physx/PhysXController.cpp
parentUpdated to CL 22627414: (diff)
downloadblast-9a1c1d814f3fa0b54b49d90b43130c02bc280f44.tar.xz
blast-9a1c1d814f3fa0b54b49d90b43130c02bc280f44.zip
Updated to CL 22661993:
* docs updates * authoring fixes * asset view in sample fix * latest blast_tools_and_samples-windows.zip
Diffstat (limited to 'samples/SampleBase/physx/PhysXController.cpp')
-rw-r--r--samples/SampleBase/physx/PhysXController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/SampleBase/physx/PhysXController.cpp b/samples/SampleBase/physx/PhysXController.cpp
index b473c8e..50502d4 100644
--- a/samples/SampleBase/physx/PhysXController.cpp
+++ b/samples/SampleBase/physx/PhysXController.cpp
@@ -66,7 +66,6 @@ const DirectX::XMFLOAT4 PLANE_COLOR(1.0f, 1.0f, 1.0f, 1.0f);
const DirectX::XMFLOAT4 HOOK_LINE_COLOR(1.0f, 1.0f, 1.0f, 1.0f);
const float DEFAULT_FIXED_TIMESTEP = 1.0f / 60.0f;
-static Nv::Blast::ExtCustomProfiler gBlastProfiler;
PhysXController::PhysXController(PxSimulationFilterShader filterShader)
: m_filterShader(filterShader)
@@ -115,6 +114,7 @@ void PhysXController::initPhysX()
m_pvd = PxCreatePvd(*m_foundation);
+ static Nv::Blast::ExtCustomProfiler gBlastProfiler;
NvBlastProfilerSetCallback(&gBlastProfiler);
NvBlastProfilerSetDetail(Nv::Blast::ProfilerDetail::LOW);
gBlastProfiler.setPlatformEnabled(false);