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

@@ -132,6 +132,14 @@ public:
///call flush to submit potential outstanding work to SPUs and wait for all involved SPUs to be finished
void flush2();
/// set the maximum number of SPU tasks allocated
void setNumTasks(int maxNumTasks);
int getNumTasks() const
{
return m_maxNumOutstandingTasks;
}
};