Removed the setting of the DatabasePager thread affinity, and moved the setting of the DatabasePager thread priotity to after the creation of the threads
This commit is contained in:
@@ -157,23 +157,6 @@ void ViewerBase::setUpThreading()
|
||||
|
||||
Scenes scenes;
|
||||
getScenes(scenes);
|
||||
|
||||
for(Scenes::iterator itr = scenes.begin();
|
||||
itr != scenes.end();
|
||||
++itr)
|
||||
{
|
||||
Scene* scene = *itr;
|
||||
osgDB::DatabasePager* dp = scene->getDatabasePager();
|
||||
if (dp)
|
||||
{
|
||||
for(unsigned int i=0; i<dp->getNumDatabaseThreads(); ++i)
|
||||
{
|
||||
osgDB::DatabasePager::DatabaseThread* dt = dp->getDatabaseThread(i);
|
||||
dt->setProcessorAffinity(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user