Problem when upgrading

Official forum for the Chipmunk2D Physics Library.
ganesha
Posts: 71
Joined: Mon Sep 06, 2010 1:29 pm
Contact:

Re: Problem when upgrading

Post by ganesha »

In all of those cases you are still creating the objects on a separate thread though?
No, the same.
How many threads do you use?
Just the one calling update, i.e. not an new thread.
Are you creating separate threads for each object created? What exactly are the threads for?
I am not creating any threads my self.
What happens if you disable your use of threads entirely or is that not easily possible?
I must still call update. I have no other threads in the examples above.
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Problem when upgrading

Post by slembcke »

Wait. To be clear, you were using threads, but now are only using the main thread and the issue still persists? If you weren't using threads before, what was the @synchronized block for?

Otherwise, I don't know of any bugs that would cause objects to not collide. Forgetting to return a value from a begin or preSolve callback is a good way to have random collision issues, but you said you disabled your handlers... Hrm. Other than checking to make sure the other collision filtering parameters (layers, groups) aren't ignoring the collision, I don't really know what to recommend.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
ganesha
Posts: 71
Joined: Mon Sep 06, 2010 1:29 pm
Contact:

Re: Problem when upgrading

Post by ganesha »

I probably found it. The group value of my objects was set by a singleton utility class that didn't behave as expected. I removed all groups and I can´t replicate the error any more. It seems to work now.

PS. Looking forward to you multi screen auto geometry project.
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Problem when upgrading

Post by slembcke »

Ah, good. That was going to drive me a little nuts otherwise.

I'm hoping to get the new autogeometry example mostly finished by the end of next week.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 4 guests