Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by MrCreator97 · Dec 20, 2016 at 03:07 PM · webglmemorymemory managementmemory usage

WebGl project memory usage

Hi everyone!

I am making an educational game that is mostly UI based, and here is my issue:

When checking in the profiler the amount of memory allocated it goes up to .57Gb, which seems strange to me. So here are some details about my project that maybe help clear out the possible cause for those more experienced than me.

  • My canvases are set to match the resolution of 1920x1080.

  • The profiler says my textures are 67mb in size

  • When opening it in firefox, I get about 280mb of memory usage

Here is the output of Editor.log after compiling:

Textures 14.4 mb 59.2% Meshes 0.0 kb 0.0% Animations 96.7 kb 0.4% Sounds 89.4 kb 0.4% Shaders 2.6 kb 0.0% Other Assets 4.7 mb 19.1% Levels 447.2 kb 1.8% Scripts 717.6 kb 2.9% Included DLLs 3.9 mb 16.1% File headers 32.6 kb 0.1% Complete size 24.4 mb 100.0%

The thing that I don't fully understand is why such a high amount of memory is used when playing it, since the build is obviously small.

Is this kind of amount of memory normal?

Thanks to everyone.

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Schubkraft · Dec 20, 2016 at 03:09 PM

There is way more going with the browser memory than is obvious from your normal sources.

For a detailed look on what is contributing to memory consumption of your WebGL game look at https://blogs.unity3d.com/2016/09/20/understanding-memory-in-unity-webgl/ and https://blogs.unity3d.com/2016/12/05/unity-webgl-memory-the-unity-heap/

Comment
Add comment · Show 1 · 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 MrCreator97 · Dec 20, 2016 at 11:44 PM 0
Share

Thanks man, I will keep optimizing my code and the allocations of memory in my game and see if that helps. Thanks for the links!

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

88 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Run out of memory in build 1 Answer

Why does my RAM usage keep increasing? 1 Answer

Profiler Stops Updating on Change Level 0 Answers

Memory error pls help 0 Answers

What is the correct way to store circular references in Unity? 1 Answer


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