Question by
Daniel_W · Aug 25, 2016 at 09:22 PM ·
c#webglbrowsermemory usage
Code to avoid or consider when exporting to WebGL?
Hi there.
I'm working on a unity project aimed at the webgl platform. And i have the same memory problem as most of the unity webgl projects. The unpacked exported java script file is 22.8mb big and the assets file is 8.5mb unpacked. When loaded in browser it expands to around 1.2gb in memory during parsing, and settles roughly around 100mb after 3-5 minutes.
Is there a way to ease the memory spike during startup and parsing? Are there some things you should avoid or consider using, when you are scripting with c# and exporting to webgl?
Comment