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:
@@ -230,6 +230,11 @@ void DatabasePager::run()
|
|||||||
|
|
||||||
if (databaseRequest->_loadedModel.valid() && !_activeGraphicsContexts.empty())
|
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();
|
ActiveGraphicsContexts::iterator itr = _activeGraphicsContexts.begin();
|
||||||
|
|
||||||
DataToCompile& dtc = databaseRequest->_dataToCompileMap[*itr];
|
DataToCompile& dtc = databaseRequest->_dataToCompileMap[*itr];
|
||||||
|
|||||||
Reference in New Issue
Block a user