Added getBound() to the database pager so that once a model has been loaded

it bounding volume is computed upfront and in the database paging thread.
This commit is contained in:
Robert Osfield 2003-08-28 21:40:23 +00:00
parent 64e3c052d6
commit d559ff91c3

View File

@ -230,6 +230,11 @@ void DatabasePager::run()
if (databaseRequest->_loadedModel.valid() && !_activeGraphicsContexts.empty())
{
// force a compute of the loaded model's bounding volume, so that when the subgraph
// merged with the main scene graph and large computeBound() isn't incurred.
databaseRequest->_loadedModel->getBound();
ActiveGraphicsContexts::iterator itr = _activeGraphicsContexts.begin();
DataToCompile& dtc = databaseRequest->_dataToCompileMap[*itr];