mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 21:49:41 +00:00
512x512 map, slightly faster
This commit is contained in:
parent
dc67a547b0
commit
f5355e3e92
2 changed files with 15 additions and 3 deletions
|
@ -213,8 +213,20 @@ namespace MWRender
|
||||||
Ogre::TexturePtr localMapTexture = Ogre::TextureManager::getSingleton().getByName("Cell_"
|
Ogre::TexturePtr localMapTexture = Ogre::TextureManager::getSingleton().getByName("Cell_"
|
||||||
+ boost::lexical_cast<std::string>(cellX) + "_" + boost::lexical_cast<std::string>(cellY));
|
+ boost::lexical_cast<std::string>(cellX) + "_" + boost::lexical_cast<std::string>(cellY));
|
||||||
|
|
||||||
if (!localMapTexture.isNull())
|
// mipmap version - can't get ogre to generate automips..
|
||||||
mOverlayTexture->getBuffer()->blit(localMapTexture->getBuffer(), Ogre::Image::Box(0,0,1024, 1024),
|
/*if (!localMapTexture.isNull())
|
||||||
|
{
|
||||||
|
assert(localMapTexture->getBuffer(0, 4)->getWidth() == 64); // 1024 / 2^4
|
||||||
|
|
||||||
|
mOverlayTexture->getBuffer()->blit(localMapTexture->getBuffer(0, 4), Ogre::Image::Box(0,0,64, 64),
|
||||||
Ogre::Image::Box(originX,originY,originX+24,originY+24));
|
Ogre::Image::Box(originX,originY,originX+24,originY+24));
|
||||||
|
}*/
|
||||||
|
|
||||||
|
if (!localMapTexture.isNull())
|
||||||
|
{
|
||||||
|
|
||||||
|
mOverlayTexture->getBuffer()->blit(localMapTexture->getBuffer(), Ogre::Image::Box(0,0,512,512),
|
||||||
|
Ogre::Image::Box(originX,originY,originX+24,originY+24));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,7 +74,7 @@ namespace MWRender
|
||||||
MWRender::RenderingManager* mRenderingManager;
|
MWRender::RenderingManager* mRenderingManager;
|
||||||
|
|
||||||
// 1024*1024 pixels for a cell
|
// 1024*1024 pixels for a cell
|
||||||
static const int sMapResolution = 1024;
|
static const int sMapResolution = 512;
|
||||||
|
|
||||||
// the dynamic texture is a bottleneck, so don't set this too high
|
// the dynamic texture is a bottleneck, so don't set this too high
|
||||||
static const int sFogOfWarResolution = 32;
|
static const int sFogOfWarResolution = 32;
|
||||||
|
|
Loading…
Reference in a new issue