History

Merge pull request #4381 from Atlante45/disk_cache

Disk cache tweaks

Brad Hefta-Gaub committed 11 years ago

Commit 21cd7e32 parents 375fa48 76903019 files · +259 −9Browse files

Showing the changes to interface/src/Application.cpp (1 of 9 files). Show all

Unified · Split

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t