Skip to content

Commit

Permalink
physx disable unused PVD for now (#16383)
Browse files Browse the repository at this point in the history
* Disable unused PVD for now

* Update physx dep
  • Loading branch information
shrinktofit authored Oct 11, 2023
1 parent 2831c61 commit 52726aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions cocos/physics/physx/physx-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -811,11 +811,7 @@ export function initializeWorld (world: any): void {
const allocator = new PX.PxDefaultAllocator();
const defaultErrorCallback = new PX.PxDefaultErrorCallback();
const foundation = PhysXInstance.foundation = PX.PxCreateFoundation(version, allocator, defaultErrorCallback);
if (DEBUG) {
PhysXInstance.pvd = PX.PxCreatePvd(foundation);
} else {
PhysXInstance.pvd = null;
}
PhysXInstance.pvd = null;
const scale = new PX.PxTolerancesScale();
PhysXInstance.physics = PX.physics = PX.PxCreatePhysics(version, foundation, scale, false, PhysXInstance.pvd);
PhysXInstance.cooking = PX.PxCreateCooking(version, foundation, new PX.PxCookingParams(scale));
Expand Down
2 changes: 1 addition & 1 deletion native/external-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"type": "github",
"owner": "cocos-creator",
"name": "engine-native-external",
"checkout": "v3.8.2-12"
"checkout": "v3.8.2-13"
}
}

0 comments on commit 52726aa

Please sign in to comment.