diff --git a/src/hub.js b/src/hub.js index 6d9223d330e363dc0adb5dc27241f4179d3bf83b..6c6d9fc89c51675a67d67f6113506d1c1e692c56 100644 --- a/src/hub.js +++ b/src/hub.js @@ -255,8 +255,8 @@ const onReady = async () => { const initialEnvironmentEl = document.createElement("a-entity"); initialEnvironmentEl.addEventListener("bundleloaded", () => { uiRoot.setState({ initialEnvironmentLoaded: true }); - // Wait a tick so that the environments actually render. - setTimeout(() => scene.renderer.animate(null)); + // Wait a tick plus some margin so that the environments actually render. + setTimeout(() => scene.renderer.animate(null), 100); }); environmentRoot.appendChild(initialEnvironmentEl);