mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-26 06:21:29 -04:00
Use a smaller static geometry size for interior cells
This commit is contained in:
parent
bd6dd071aa
commit
0463dc0653
@ -130,7 +130,10 @@ void Objects::insertModel(const MWWorld::Ptr &ptr, const std::string &mesh)
|
|||||||
// - the culling will be more inefficient
|
// - the culling will be more inefficient
|
||||||
// If it is set too low:
|
// If it is set too low:
|
||||||
// - there will be too many batches.
|
// - there will be too many batches.
|
||||||
sg->setRegionDimensions(Ogre::Vector3(2500,2500,2500));
|
if(ptr.getCell()->isExterior())
|
||||||
|
sg->setRegionDimensions(Ogre::Vector3(2048,2048,2048));
|
||||||
|
else
|
||||||
|
sg->setRegionDimensions(Ogre::Vector3(1024,1024,1024));
|
||||||
|
|
||||||
sg->setVisibilityFlags(small ? RV_StaticsSmall : RV_Statics);
|
sg->setVisibilityFlags(small ? RV_StaticsSmall : RV_Statics);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user