<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://pybullet.org/Bullet/phpBB3/app.php/feed/topic/12812" />

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2019-11-22T15:20:14+00:00</updated>

	<author><name><![CDATA[Real-Time Physics Simulation Forum]]></name></author>
	<id>https://pybullet.org/Bullet/phpBB3/app.php/feed/topic/12812</id>

		<entry>
		<author><name><![CDATA[BoredStudent]]></name></author>
		<updated>2019-11-22T15:20:14+00:00</updated>

		<published>2019-11-22T15:20:14+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42493#p42493</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42493#p42493"/>
		<title type="html"><![CDATA[How to know if multi threading is working]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42493#p42493"><![CDATA[
Hi,<br><br>I've been trying to turn my single threaded project into multi threaded.<br>Currently all i've done is this code when i create the world (SolverMt causes a crash when i use it so i use solver instead).<br><div class="codebox"><p>Code: </p><pre><code>Physics::Physics() :broadphase(new btDbvtBroadphase()){collisionConfig = new btDefaultCollisionConfiguration();dispatcherMt = new btCollisionDispatcherMt(collisionConfig, 40);btConstraintSolver* solvers[BT_MAX_THREAD_COUNT];int maxThreadCount = BT_MAX_THREAD_COUNT;btConstraintSolverPoolMt* solverPool = new btConstraintSolverPoolMt(maxThreadCount);btSequentialImpulseConstraintSolverMt* solverMt = new btSequentialImpulseConstraintSolverMt();btSequentialImpulseConstraintSolver* solver = new btSequentialImpulseConstraintSolver();world = new btDiscreteDynamicsWorldMt(dispatcherMt, broadphase, solverPool, solver, collisionConfig);</code></pre></div>I know im atleast missing a task scheduler, tried creating one with<div class="codebox"><p>Code: </p><pre><code>btSetTaskScheduler(btCreateDefaultTaskScheduler());</code></pre></div>but performance seemed to be the same (or perhaps a bit worse).<br><br>What are the steps to implement multi threading and how do i know if it is working?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13470">BoredStudent</a> — Fri Nov 22, 2019 3:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
