Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raycast performance #70

Open
wants to merge 22 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
ffc61ad
Add raycasts to performance test
andrewdolce Aug 7, 2012
d455c6b
Remove allocations in CollisionWorld.rayTestSingle
andrewdolce Aug 7, 2012
cf22db1
Remove allocation from rayTest
andrewdolce Aug 7, 2012
8111a2b
Remove allocations from updateClosestVectorAndPoints
andrewdolce Aug 7, 2012
85d24f1
Remove allocations in SphereShape
andrewdolce Aug 10, 2012
180068a
Remove allocation from CollisionWorld rayTestSingle
andrewdolce Aug 10, 2012
7a3c223
Remove allocation in DbvtBroadphase rayTest
andrewdolce Aug 10, 2012
54fdaf4
Remove allocations from VoronoiSimplexSolver
andrewdolce Aug 10, 2012
7d6147a
Remove allocations from SubsimplexConvexCast
andrewdolce Aug 10, 2012
9e557ca
Remove allocations from Dbvt rayTest
andrewdolce Aug 10, 2012
109c34e
mempool LocalAddrInfo2 for RayTester
mzgoddard Aug 10, 2012
2cdfe6f
mempool Vector3 handling in Dbvt.rayTest
mzgoddard Aug 10, 2012
3108c4a
mempool Vector3 in Dbvt.rayTestInternal
mzgoddard Aug 10, 2012
d0c7675
Make tmin reference in RayAabb2 consistent
tJener Aug 13, 2012
b667edd
Remove allocations in Dbvt.js
tJener Aug 13, 2012
5e6be76
WS: Whitespace and formatting in Dbvt.js
tJener Aug 13, 2012
46bb945
Fix Array vs Vector3 confusion in SingleRayCallback
andrewdolce Aug 13, 2012
1cd2b46
Add efficient `set` function to SphereShape.
andrewdolce Aug 14, 2012
623dbad
Fix SingleRayCallback unit test
andrewdolce Aug 14, 2012
80907cd
Separate ray-cast perf test from general perf test
andrewdolce Aug 14, 2012
5070cc4
WS: Whitespace and formatting
tJener Aug 15, 2012
d54a1ff
Eschew clone for assign
tJener Aug 15, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
489 changes: 286 additions & 203 deletions src/BulletCollision/BroadphaseCollision/Dbvt.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/BulletCollision/BroadphaseCollision/DbvtBroadphase.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@
}
});

var tmpBroadphaseRayTester = Bump.BroadphaseRayTester.create();

Bump.DbvtBroadphase = Bump.type({
parent: Bump.BroadphaseInterface,

Expand Down Expand Up @@ -359,7 +361,9 @@
aabbMin = aabbMin || Bump.Vector3.create();
aabbMax = aabbMin || Bump.Vector3.create();

var callback = Bump.BroadphaseRayTester.create( rayCallback );
// var callback = Bump.BroadphaseRayTester.create( rayCallback );
var callback = tmpBroadphaseRayTester;
callback.init( rayCallback );

this.sets[0].rayTestInternal(
this.sets[0].root,
Expand Down
Loading