Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by resiak · Jul 09, 2015 at 09:25 AM · webglmemory

WebGL memory size in Player Settings?

What does the 'WebGL Memory Size' player setting actually do?

I get this error no matter what I set it to:

"Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 16777216, (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs."

But, if I open the generated .js file and increase TOTAL_MEMORY manually, it loads without error. I also noticed that you can just set TOTAL_MEMORY in Module object of the generated html page.

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Linck · Sep 02, 2015 at 09:49 PM 0
Share

How exactly do you increase TOTAL_$$anonymous$$E$$anonymous$$ORY?

avatar image SpiralConDave · Sep 02, 2015 at 10:10 PM 0
Share

Linck, do what he says. Use a text editor to open the .js file it generates (your projectname.js for example, and look for TOTAL_$$anonymous$$E$$anonymous$$ORY. Of course THIS should also be exposed in the Unity editor (and scripting API)

avatar image Schubkraft ♦♦ · Sep 03, 2015 at 09:09 AM 0
Share

There is a TOTAL_$$anonymous$$E$$anonymous$$ORY var in the generated index.html. The same setting is available in the player settings in the editor. The one in the html overrides the one from the player settings though.

avatar image Linck · Sep 03, 2015 at 12:50 PM 0
Share

Oh, I was trying to edit a var called TOTAL_$$anonymous$$E$$anonymous$$ORY in the .js that has the name of the project in the Developement folder. Didn't notice there was something in the index.html. I'll try it out.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Schubkraft · Jul 13, 2015 at 02:58 PM

What version are you using? Where are you getting the error?

Changing the memory in the HTML file is supported by us to allow you iterate faster over needed memory sizes for your content.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ben-BearFish · Jul 13, 2015 at 08:40 PM 0
Share

I'm getting the same issue. Changing the memory size doesn't seem to help either.

avatar image SpiralConDave · Aug 25, 2015 at 08:53 PM 0
Share

Same here. How do I set ALLOW_$$anonymous$$E$$anonymous$$ORY_GROWTH? Can I add that to the $$anonymous$$odule, e.g.: var $$anonymous$$odule = { ALLOW_$$anonymous$$E$$anonymous$$ORY_GROWH: 1, ..

???

avatar image
0

Answer by Schubkraft · Sep 03, 2015 at 09:11 AM

Use the search, Luke!

http://forum.unity3d.com/threads/suggestion-add-allow_memory_growth-flag-to-editor-player-settings.344240/#post-2243488

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

WebGL Build Out of Memory Github Pages Not on Local Host 0 Answers

I have this out of memory issue when running my webgl game in iOS. 0 Answers

Not able to load large obj Files in Unity Webgl 0 Answers

Unity WebGL build memory discrepancy in local hosted and web hosted 0 Answers

WebGl build on Server has load memory error 6 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges