- Home /
glTF & WebGL out of memory
Hi!
we're using the GLTFUtility (https://github.com/Siccity/GLTFUtility) to load glTF models from a remote server - Importer.LoadFromFile(filePath) - and render it on a Unity scene. We build and deploy the WebGL.
it works great with glTF files under 50 MB but goes in the classic out of memory error with larger files:
"Out of memory. If you are the developer of this content, try allocating more memory to your WebGL build in the WebGL player settings"
We tryed to set
webGLEmscriptenArgs: -s ALLOW_MEMORY_GROWTH=1
and increase the value of
webGLMemorySize
in ProjectSettings.asset with no results.
Some idea?
Thank you.
Answer by Giusort · Feb 19 at 06:53 PM
Hi @IonutDragan , no, unfortunately we didn't solve the problem yet...
As we can read also on official Unity manual, there are memory limits:
https://docs.unity3d.com/2020.1/Documentation/Manual/webgl-memory.html
Your answer
Follow this Question
Related Questions
WebGL -Chrome seems to do nothing while loading WebGL appllication 0 Answers
2018.2 WebAssembly loading intervals only 0%, 90%, 100% 0 Answers
How to clear all the players that have played my games playerprefs? 2 Answers
Unity WebGL game on itch.io loads different scene than in editor 0 Answers
Webgl not loading 1 Answer