Search found 17 matches

by nickak2003
Sun Apr 12, 2020 12:31 am
Forum: General Bullet Physics Support and Feedback
Topic: Mt solver pool using non-Mt solver?
Replies: 2
Views: 804

Re: Mt solver pool using non-Mt solver?

I think your problem may be that your not creating the individual solvers in the pool.
by nickak2003
Sun Apr 12, 2020 12:29 am
Forum: General Bullet Physics Support and Feedback
Topic: Mt solver pool using non-Mt solver?
Replies: 2
Views: 804

Re: Mt solver pool using non-Mt solver?

This is what I use, and I am stable: auto createSolver = [&]() -> btConstraintSolverPoolMt* { SolverType tmpSolverType = mSolverType; if (tmpSolverType == SolverType::SOLVER_TYPE_SEQUENTIAL_IMPULSE_MT) { // pool solvers shouldn't be parallel solvers, we don't allow that kind of // nested parallelism...
by nickak2003
Sat Apr 11, 2020 8:18 pm
Forum: General Bullet Physics Support and Feedback
Topic: Multithreading contactTest()
Replies: 1
Views: 978

Re: Multithreading contactTest()

So to get contact test to multithread, it's pretty easy. All you need is to add one mutex to collisiondispatcher and then lock it in new/release/dispatch.

infinite performance gains
by nickak2003
Fri Feb 28, 2020 7:11 pm
Forum: General Bullet Physics Support and Feedback
Topic: Multithreading contactTest()
Replies: 1
Views: 978

Multithreading contactTest()

So id like to have a bunch of btghostobjects and it to me it would make sense to multithread contactTest with the ghost object. I think i just need to add mutexes to various places, anyone have any suggestions? Right now, if i try to call contact test in parallel, it breaks pretty hard.
by nickak2003
Thu Feb 27, 2020 9:50 pm
Forum: General Bullet Physics Support and Feedback
Topic: determinism with mt bullet?
Replies: 2
Views: 748

Re: determinism with mt bullet?

So i tried handling the collisions in a specific order, assuming they can come in mixed-up, but that does not seem to help. To generate the order, i always attach a unique ID to userIndex when an object is created. obj->setUserIndex(uniqueID++) here's my collision routine. static std::vector< btPers...
by nickak2003
Thu Feb 27, 2020 6:50 pm
Forum: General Bullet Physics Support and Feedback
Topic: determinism with mt bullet?
Replies: 2
Views: 748

Re: determinism with mt bullet?

Is deterministic MT not supported in bullet 2?
by nickak2003
Tue Feb 25, 2020 10:54 pm
Forum: General Bullet Physics Support and Feedback
Topic: determinism with mt bullet?
Replies: 2
Views: 748

determinism with mt bullet?

Hello, I am trying to run bullet and use MT, is there a way to do it deterministically? Right now I have the following stuff: setTaskScheduler(SchedulerType::DEFAULT); btDefaultCollisionConstructionInfo cci; cci.m_defaultMaxPersistentManifoldPoolSize = 80000; cci.m_defaultMaxCollisionAlgorithmPoolSi...
by nickak2003
Wed Jan 29, 2020 5:50 pm
Forum: General Bullet Physics Support and Feedback
Topic: nullptr Exception thrown from batchedConstraint::setup
Replies: 1
Views: 1032

Re: nullptr Exception thrown from batchedConstraint::setup

OK sorry it looks like the problem was bullet wasn't built with multithreading checked, lol. Sorry!
by nickak2003
Wed Jan 29, 2020 12:47 am
Forum: General Bullet Physics Support and Feedback
Topic: nullptr Exception thrown from batchedConstraint::setup
Replies: 1
Views: 1032

nullptr Exception thrown from batchedConstraint::setup

The following image contains the error and stack trace: https://pasteboard.co/IS8iQqf.png I am using multithreaded bullet, a height map, and a lot of objects. Only happens once objects have started colliding on the heightmap, and only when there's pileup or a lot of interaction. Seems like something...
by nickak2003
Sat Jan 11, 2020 8:26 pm
Forum: General Bullet Physics Support and Feedback
Topic: Memory Leak in btMLCPSolver
Replies: 0
Views: 1005

Memory Leak in btMLCPSolver

~btMLCPSolver should delete m_solver; given that m_solver was newed. Right now it leaks instead, especially during: ~btConstraintSolverPoolMt. Which is how I Discovered this issue. Another solution is to not have the ~btConstraintSolverPoolMt delete anything, which I would prefer.
by nickak2003
Mon Jun 11, 2018 7:08 pm
Forum: General Bullet Physics Support and Feedback
Topic: Is it possible to perform collision detection against a single object
Replies: 7
Views: 2712

Re: Is it possible to perform collision detection against a single object

Thanks for helping me. Ok so here was the question from my earlier post explained better I hope: I am using a collision world, not dynamics. I call, Physics::CollisionCallback callback = std::bind(&Playground::collisionCallback, this, std::placeholders::_1, std::placeholders::_2); mPhysics.setCollis...
by nickak2003
Sun Jun 10, 2018 11:18 pm
Forum: General Bullet Physics Support and Feedback
Topic: Is it possible to perform collision detection against a single object
Replies: 7
Views: 2712

Re: Is it possible to perform collision detection against a single object

So I have implemented a btGhostObject in my collision world, but It seems to be getting sent to the general collision detection handler. When you said it doesn't collide, were you referring to in a dynamics world? Or am I perhaps doing something wrong?
by nickak2003
Thu Jun 07, 2018 1:26 pm
Forum: General Bullet Physics Support and Feedback
Topic: Is it possible to perform collision detection against a single object
Replies: 7
Views: 2712

Re: Is it possible to perform collision detection against a single object

So my game is top down and sort of rts-ish. A unit has a vision in which it decides to engage an enemy unit. I thought that doing a bullet-collision-shape for sight made sense to gather a list of enemies in range. Is this true?
by nickak2003
Wed Jun 06, 2018 11:18 pm
Forum: General Bullet Physics Support and Feedback
Topic: Is it possible to perform collision detection against a single object
Replies: 7
Views: 2712

Is it possible to perform collision detection against a single object

I want to do my unit sight detection with the library, I think. So, I was thinking to have a collision object, the units sight area, and then if I could just do collision against that object to build a list of sighted objects, is this possible, or is there a better method?
by nickak2003
Fri Jan 01, 2016 1:14 am
Forum: General Bullet Physics Support and Feedback
Topic: CPU multithreading is working!
Replies: 145
Views: 76392

Re: CPU multithreading is working!

I have just started using bullet. Is this thread related to the master's multithreaded examples?