Disk cache tweaks
Showing the changes to interface/src/Application.cpp (1 of 9 files). Show all
Unified · Split
| @@ -141,7 +141,7 @@ using namespace std; · 140 unmodified lines | ||
| 141 | 141 | static unsigned STARFIELD_NUM_STARS = 50000; |
| 142 | 142 | static unsigned STARFIELD_SEED = 1; |
| 143 | 143 | |
| 144 | −const qint64 MAXIMUM_CACHE_SIZE = 10737418240; // 10GB | |
| 144 | +const qint64 MAXIMUM_CACHE_SIZE = 10 * BYTES_PER_GIGABYTES; // 10GB | |
| 145 | 145 | |
| 146 | 146 | static QTimer* locationUpdateTimer = NULL; |
| 147 | 147 | static QTimer* balanceUpdateTimer = NULL; |
| @@ -445,7 +445,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 297 unmodified lines | ||
| 445 | 445 | cache->setMaximumCacheSize(MAXIMUM_CACHE_SIZE); |
| 446 | 446 | cache->setCacheDirectory(!cachePath.isEmpty() ? cachePath : "interfaceCache"); |
| 447 | 447 | networkAccessManager.setCache(cache); |
| 448 | − | |
| 448 | + | |
| 449 | 449 | ResourceCache::setRequestLimit(3); |
| 450 | 450 | |
| 451 | 451 | _window->setCentralWidget(_glWidget); |