1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Reduce memory usage of adventure map

This commit is contained in:
Ivan Savenko 2024-06-04 18:04:09 +00:00
parent 861ed7667d
commit 4787965cec

View File

@ -102,7 +102,7 @@ int3 MapViewModel::getTileAtPoint(const Point & position) const
Point MapViewModel::getCacheDimensionsPixels() const Point MapViewModel::getCacheDimensionsPixels() const
{ {
return getTilesVisibleDimensions() * getSingleTileSizeUpperLimit(); return getPixelsVisibleDimensions() + getSingleTileSizeUpperLimit() * 2;
} }
Rect MapViewModel::getCacheTileArea(const int3 & coordinates) const Rect MapViewModel::getCacheTileArea(const int3 & coordinates) const