From d244cf6061c9e8c027226c1df978f7279c980ed2 Mon Sep 17 00:00:00 2001 From: Tigran Gasparian Date: Fri, 15 Jun 2018 17:13:10 +0200 Subject: [PATCH] Changes the default number of rays per thread from 32 to 16, when the user lets Bullet decide. --- examples/SharedMemory/PhysicsServerCommandProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp index f84f3fd54..2a6b2f9d7 100644 --- a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp +++ b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp @@ -4828,7 +4828,7 @@ bool PhysicsServerCommandProcessor::processRequestRaycastIntersectionsCommand(co if (numThreads == 0) { // When 0 is specified, Bullet can decide how many threads to use. // About 16 rays per thread seems to work reasonably well. - batchRayCaster.castRays(numRays / 32); + batchRayCaster.castRays(numRays / 16); } else if (numThreads == 1) { // Sequentially trace all rays: for (int i = 0; i < numRays; i++) {