Problem when upgrading

Official forum for the Chipmunk2D Physics Library.

Re: Problem when upgrading

Postby ganesha » Thu Dec 27, 2012 5:12 pm

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.
ganesha
 
Posts: 71
Joined: Mon Sep 06, 2010 1:29 pm

Re: Problem when upgrading

Postby slembcke » Thu Dec 27, 2012 10:59 pm

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/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: Problem when upgrading

Postby ganesha » Fri Dec 28, 2012 8:15 am

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.
ganesha
 
Posts: 71
Joined: Mon Sep 06, 2010 1:29 pm

Re: Problem when upgrading

Postby slembcke » Fri Dec 28, 2012 1:29 pm

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/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Previous

Return to Chipmunk2D Physics

Who is online

Users browsing this forum: No registered users and 15 guests

cron