Minor fixes in multi-threaded narrowphase Bullet version: allow to dynamically switch number of threads/SPUs

Disable USE_SEPDISTANCE_UTIL for now
This commit is contained in:
erwin.coumans
2009-08-04 00:03:14 +00:00
parent 3160a0555c
commit 1b457b45e2
6 changed files with 47 additions and 13 deletions

View File

@@ -64,6 +64,7 @@ private:
btAlignedObjectArray<btSpuStatus> m_activeSpuStatus;
btAlignedObjectArray<void*> m_completeHandles;
int m_maxNumTasks;
public:
///Setup and initialize SPU/CELL/Libspe2
@@ -116,6 +117,12 @@ public:
virtual void setNumTasks(int numTasks)
{
m_maxNumTasks = numTasks;
}
virtual int getNumTasks() const
{
return m_maxNumTasks;
}
};