Moving a static and rehashing

Official forum for the Chipmunk2D Physics Library.
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Moving a static and rehashing

Post by slembcke »

Oooohhhh. I figured it was queries that were slowing things down, but I suppose simply rehashing an object into the same cells repeatedly will also get slower each time as well.

Is that the problem that you were running into? That cpSpaceRehashShape() was getting slower each time? I think that is fixable too without too much trouble.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
dieterweb
Posts: 176
Joined: Fri Feb 27, 2009 7:12 am
Location: Germany
Contact:

Re: Moving a static and rehashing

Post by dieterweb »

I am doing rehashes and queries while the simulation is paused. But if I remember right what I saw in the profile, it was the hashing, which got slower.
Visit our game Blog: [url]http://zombiesmash.gamedrs.com[/url] or follow us on twitter: [url]http://twitter.com/zombiesmash[/url]
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests