[Marble-commits] KDE/kdeedu/marble/src/lib
Dennis Nienhüser
earthwings at gentoo.org
Thu Aug 26 23:27:14 CEST 2010
SVN commit 1168527 by nienhueser:
Change the default volatile tile cache size from 30 MB to 6 MB on small screen devices (Maemo). This helps to reduce the rather high memory usage. Note that you need to manually edit Marble's config for the setting to take effect if you ran Marble before.
M +2 -1 QtMarbleConfigDialog.cpp
--- trunk/KDE/kdeedu/marble/src/lib/QtMarbleConfigDialog.cpp #1168526:1168527
@@ -557,7 +557,8 @@
int QtMarbleConfigDialog::volatileTileCacheLimit() const
{
- return d->m_settings->value( "Cache/volatileTileCacheLimit", 30 ).toInt();
+ int defaultValue = MarbleGlobal::getInstance()->profiles() & MarbleGlobal::SmallScreen ? 6 : 30;
+ return d->m_settings->value( "Cache/volatileTileCacheLimit", defaultValue ).toInt();
}
int QtMarbleConfigDialog::persistentTileCacheLimit() const
More information about the Marble-commits
mailing list