Fix long tablet lag on first load
Showing the changes to interface/src/Application.cpp (1 of 6 files). Show all
Unified · Split
| @@ -2369,6 +2369,7 @@ void Application::initializeUi() { · 2368 unmodified lines | ||
| 2369 | 2369 | |
| 2370 | 2370 | // Pre-create a couple of Web3D overlays to speed up tablet UI |
| 2371 | 2371 | auto offscreenSurfaceCache = DependencyManager::get<OffscreenQmlSurfaceCache>(); |
| 2372 | + offscreenSurfaceCache->reserve(TabletScriptingInterface::QML, 1); | |
| 2372 | 2373 | offscreenSurfaceCache->reserve(Web3DOverlay::QML, 2); |
| 2373 | 2374 | } |
| 2374 | 2375 | |