Showing the changes to interface/src/Application.cpp (1 of 12 files). Show all
Unified · Split
| @@ -58,6 +58,7 @@ · 57 unmodified lines | ||
| 58 | 58 | #include <PacketHeaders.h> |
| 59 | 59 | #include <ParticlesScriptingInterface.h> |
| 60 | 60 | #include <PerfStat.h> |
| 61 | +#include <ResourceCache.h> | |
| 61 | 62 | #include <UUID.h> |
| 62 | 63 | #include <VoxelSceneStats.h> |
| 63 | 64 | |
| @@ -275,6 +276,9 @@ Application::Application(int& argc, char** argv, timeval &startup_time) : · 211 unmodified lines | ||
| 275 | 276 | cache->setCacheDirectory(!cachePath.isEmpty() ? cachePath : "interfaceCache"); |
| 276 | 277 | _networkAccessManager->setCache(cache); |
| 277 | 278 | |
| 279 | + ResourceCache::setNetworkAccessManager(_networkAccessManager); | |
| 280 | + ResourceCache::setRequestLimit(3); | |
| 281 | + | |
| 278 | 282 | _window->setCentralWidget(_glWidget); |
| 279 | 283 | |
| 280 | 284 | restoreSizeAndPosition(); |