mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-05 00:49:09 +02:00
Reduce memory usage of adventure map
This commit is contained in:
@ -102,7 +102,7 @@ int3 MapViewModel::getTileAtPoint(const Point & position) const
|
||||
|
||||
Point MapViewModel::getCacheDimensionsPixels() const
|
||||
{
|
||||
return getTilesVisibleDimensions() * getSingleTileSizeUpperLimit();
|
||||
return getPixelsVisibleDimensions() + getSingleTileSizeUpperLimit() * 2;
|
||||
}
|
||||
|
||||
Rect MapViewModel::getCacheTileArea(const int3 & coordinates) const
|
||||
|
Reference in New Issue
Block a user