behdad / box2d

Automatically exported from code.google.com/p/box2d
2 stars 12 forks source link

keep inactive bodies on separate lists #282

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Keeping inactive bodies on the same double-linked list as the active bodies 
requires unnecessary iterations when stepping the world. They should be kept 
separately.

Issue 212 (apparently) contains this plus several other enhancements, but it is 
for C#.

Attached patch is a proof-of-concept implementation, but obviously it is ugly 
and I think there are some special cases missing, so do not apply. If there is 
interest I could clean it up.

This is Box2D C++ v2.2.1.

Original issue reported on code.google.com by marcus.a...@gmail.com on 7 May 2012 at 6:02

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by erinca...@gmail.com on 29 Oct 2013 at 5:59