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:
Robert Osfield
2010-04-15 11:02:22 +00:00
parent d5fafcecbd
commit 9045d03a0b
2 changed files with 29 additions and 46 deletions

View File

@@ -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);
}
}
}
}
}
}